Bug fix to jik's bug fix. (Caused by our code drift since jik's
authorTheodore Tso <tytso@mit.edu>
Wed, 3 May 1995 02:14:11 +0000 (02:14 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 3 May 1995 02:14:11 +0000 (02:14 +0000)
changes went in, and not sufficiently careful checking of jik's
patches before applying it.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5692 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/kcmd.c

index 143c68f832589e3458a66d893bb5e04132c821ff..476966c1e301f1caed75c255743b24aa8b221e12 100644 (file)
@@ -1,3 +1,8 @@
+Tue May  2 22:12:39 1995  Theodore Y. Ts'o  (tytso@dcl)
+
+       * kcmd.c (kcmd()): Bug fix to jik's bug fix.  (Caused by our code
+               drift since jik's changes went in, and not sufficiently
+               careful checking of jik's patches before applying it.)
 
 Mon May 01 15:56:32 1995  Chris Provenzano
 
index 67656ccf18ee3a618fa77ab4f9535dd9e866fa8f..bff744dba066ad8811b5c36afb5619881532df6c 100644 (file)
@@ -136,9 +136,9 @@ kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, service, realm,
     }
 
     if (realm && *realm) {
-       (void) krb5_xfree(krb5_princ_realm(bsd_context,ret_cred->server)->data);
-       krb5_princ_set_realm_length(bsd_context,ret_cred->server,strlen(realm));
-       krb5_princ_set_realm_data(bsd_context,ret_cred->server,strdup(realm));
+       (void) krb5_xfree(krb5_princ_realm(bsd_context,get_cred->server)->data);
+       krb5_princ_set_realm_length(bsd_context,get_cred->server,strlen(realm));
+       krb5_princ_set_realm_data(bsd_context,get_cred->server,strdup(realm));
    }
 #ifdef POSIX_SIGNALS
     sigemptyset(&urgmask);