From: Theodore Tso Date: Wed, 3 May 1995 02:14:11 +0000 (+0000) Subject: Bug fix to jik's bug fix. (Caused by our code drift since jik's X-Git-Tag: krb5-1.0-beta5~61 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c722d676859d7cc90952b9658a4dbd42e1c6facc;p=krb5.git 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.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5692 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 143c68f83..476966c1e 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -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 diff --git a/src/appl/bsd/kcmd.c b/src/appl/bsd/kcmd.c index 67656ccf1..bff744dba 100644 --- a/src/appl/bsd/kcmd.c +++ b/src/appl/bsd/kcmd.c @@ -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);