Initialize ret_cred to zero so that in case of an error, we don't try
authorTheodore Tso <tytso@mit.edu>
Fri, 10 Mar 1995 23:35:21 +0000 (23:35 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 10 Mar 1995 23:35:21 +0000 (23:35 +0000)
to free stack garbage.

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

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

index 6513090dda77c09e2fb06a4b1b7db8d11bccb0b4..4fe21ef4a67e207380b7ae824dafb7df393d51b0 100644 (file)
@@ -1,3 +1,8 @@
+Fri Mar 10 18:32:22 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * 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().
index e4c1839ce7df4a4224c91a23ae55bf0d5c51cf92..c2989ae4daddb2dc7dbe73ce831e6554ce61fb7d 100644 (file)
@@ -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;