definition of krb5_auth_context to a pointer, sizeof(krb5_auth_context)
authorEzra Peisach <epeisach@mit.edu>
Sun, 11 Jun 1995 17:00:02 +0000 (17:00 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sun, 11 Jun 1995 17:00:02 +0000 (17:00 +0000)
is only the size of the pointer - not the structure size!

auth_con_init: Zero the entire auth_context... With the change in

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

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

index 4657fb7d7cbdaa637ac9e600b70ce12ff01d91ca..141f8f44752d4870259c8f45888174374671352b 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jun 11 12:31:39 1995  Ezra Peisach  (epeisach@kangaroo.mit.edu)
+
+       * auth_con.c (krb5_auth_con_init): Zero newly allocated
+               krb5_auth_context. (Fixed error in redefinitions).
+
 Sat Jun 10 23:05:51 1995  Tom Yu  (tlyu@dragons-lair)
 
        * auth_con.c, compat_recv.c, mk_cred.c, mk_priv.c, mk_rep.c,
index c58d61cb184ad42c762c5bcc2b10893c44221b5b..86af54bfffb03c70faa17ad5159d957fca57b8de 100644 (file)
@@ -12,7 +12,7 @@ krb5_auth_con_init(context, auth_context)
     if (!*auth_context)
            return ENOMEM;
     
-    memset(*auth_context, 0, sizeof(krb5_auth_context));
+    memset(*auth_context, 0, sizeof(struct _krb5_auth_context));
 
     /* Default flags, do time not seq */
     (*auth_context)->auth_context_flags =