Initialize rcache to zero, so that on cleanup we don't try to free
authorTheodore Tso <tytso@mit.edu>
Fri, 1 Dec 1995 22:14:52 +0000 (22:14 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 1 Dec 1995 22:14:52 +0000 (22:14 +0000)
stack garbage.

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

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/recvauth.c

index 3092f3ae4c076b4a2ff841efd5ac0ef49095cb94..2916a22af5a92ee09d077e95cb9b96ed1ef39583 100644 (file)
@@ -1,3 +1,8 @@
+Fri Dec  1 17:04:43 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * recvauth.c (krb5_recvauth): Initialize rcache to zero, so that
+               on cleanup we don't try to free stack garbage.
+
 Sun Nov 26 19:31:18 1995  Tom Yu  <tlyu@dragons-lair.MIT.EDU>
 
        * preauth.c: Ultrix is broken.  Prototype obtain_enc_ts_padata()
index 3390d044c8b26b7fad0c58221656a115cb74a1ee..d88c20cb59cd81eb586eaf5442326ccea40ee7ec 100644 (file)
@@ -56,7 +56,7 @@ krb5_recvauth(context, auth_context,
     krb5_error_code      retval, problem;
     krb5_data            inbuf;
     krb5_data            outbuf;
-    krb5_rcache          rcache;
+    krb5_rcache          rcache = 0;
     krb5_octet           response;
     krb5_data            null_server;
        
@@ -177,10 +177,6 @@ krb5_recvauth(context, auth_context,
        krb5_us_timeofday(context, &error.stime, &error.susec);
        error.server = server;
 
-
-
-
-
        error.error = problem - ERROR_TABLE_BASE_krb5;
        if (error.error > 127)
                error.error = KRB_ERR_GENERIC;