* client_init.c (_kadm5_init_any): gss_krb5_ccache_name returns
authorEzra Peisach <epeisach@mit.edu>
Thu, 29 Jun 2000 01:08:55 +0000 (01:08 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 29 Jun 2000 01:08:55 +0000 (01:08 +0000)
        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

src/lib/kadm5/clnt/ChangeLog
src/lib/kadm5/clnt/client_init.c

index 0e47993d543c4ce58e4297daa9adf77d268fed37..0ceb6537430f466c5cf92f6a190c0dfaf988e7e6 100644 (file)
@@ -1,3 +1,8 @@
+2000-06-28  Ezra Peisach  <epeisach@mit.edu>
+
+       * 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  <nalin@redhat.com>
 
        * clnt_chpass_util.c (kadm5_chpass_principal_util): Adjust for new
index 56fbfcd72348fa6997a2f2f8d3f68349a306cf67..94bbb58c7f8e6ef30b79c81c8f9c5be1ced7da29 100644 (file)
@@ -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;