From: Theodore Tso Date: Fri, 10 Mar 1995 23:35:21 +0000 (+0000) Subject: Initialize ret_cred to zero so that in case of an error, we don't try X-Git-Tag: krb5-1.0-beta5~564 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bf958ee4cdddbe5cbfd61e6df3a774adb2b1b13a;p=krb5.git Initialize ret_cred to zero so that in case of an error, we don't try to free stack garbage. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5108 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 6513090dd..4fe21ef4a 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,8 @@ +Fri Mar 10 18:32:22 1995 Theodore Y. Ts'o + + * kcmd.c (kcmd): Initialize ret_cred to zero so that in case of an + error, we don't try to free stack garbage. + Fri Mar 10 11:09:34 1995 Chris Provenzano (proven@mit.edu) * kcmd.c (kcmd()) Use new calling convention for krb5_sendauth(). diff --git a/src/appl/bsd/kcmd.c b/src/appl/bsd/kcmd.c index e4c1839ce..c2989ae4d 100644 --- a/src/appl/bsd/kcmd.c +++ b/src/appl/bsd/kcmd.c @@ -88,7 +88,7 @@ kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, service, realm, long oldmask; #endif struct sockaddr_in sin, from, local_laddr; - krb5_creds *get_cred, *ret_cred; + krb5_creds *get_cred, *ret_cred = 0; char c; int lport = START_PORT; struct hostent *hp;