From: Ezra Peisach Date: Thu, 29 Jun 2000 01:08:55 +0000 (+0000) Subject: * client_init.c (_kadm5_init_any): gss_krb5_ccache_name returns X-Git-Tag: krb5-1.3-alpha1~2070 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=257a6f30c551b302be293292be6f4a3a86ca34d4;p=krb5.git * client_init.c (_kadm5_init_any): gss_krb5_ccache_name returns const char *, but the code was treating it as a char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12461 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kadm5/clnt/ChangeLog b/src/lib/kadm5/clnt/ChangeLog index 0e47993d5..0ceb65374 100644 --- a/src/lib/kadm5/clnt/ChangeLog +++ b/src/lib/kadm5/clnt/ChangeLog @@ -1,3 +1,8 @@ +2000-06-28 Ezra Peisach + + * client_init.c (_kadm5_init_any): gss_krb5_ccache_name returns + const char *, but the code was treating it as a char *. + 2000-06-23 Nalin Dahyabhai * clnt_chpass_util.c (kadm5_chpass_principal_util): Adjust for new diff --git a/src/lib/kadm5/clnt/client_init.c b/src/lib/kadm5/clnt/client_init.c index 56fbfcd72..94bbb58c7 100644 --- a/src/lib/kadm5/clnt/client_init.c +++ b/src/lib/kadm5/clnt/client_init.c @@ -153,6 +153,7 @@ static kadm5_ret_t _kadm5_init_any(char *client_name, int i; char full_service_name[BUFSIZ], host[MAXHOSTNAMELEN], *ccname_orig; + const char *c_ccname_orig; char *realm; krb5_creds creds; krb5_ccache ccache = NULL; @@ -439,13 +440,16 @@ static kadm5_ret_t _kadm5_init_any(char *client_name, /* use the kadm5 cache */ gssstat = gss_krb5_ccache_name(&minor_stat, handle->cache_name, - &ccname_orig); + &c_ccname_orig); if (gssstat != GSS_S_COMPLETE) { code = KADM5_GSS_ERROR; goto error; } - if (ccname_orig) - ccname_orig = strdup(ccname_orig); + if (c_ccname_orig) + ccname_orig = strdup(c_ccname_orig); + else + ccname_orig = 0; + #ifndef INIT_TEST input_name.value = full_service_name;