From 1ccc93502bbbdb0f3743157b90ccf015230c843b Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sun, 11 Jun 1995 17:00:02 +0000 Subject: [PATCH] definition of krb5_auth_context to a pointer, sizeof(krb5_auth_context) 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 | 5 +++++ src/lib/krb5/krb/auth_con.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 4657fb7d7..141f8f447 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -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, diff --git a/src/lib/krb5/krb/auth_con.c b/src/lib/krb5/krb/auth_con.c index c58d61cb1..86af54bff 100644 --- a/src/lib/krb5/krb/auth_con.c +++ b/src/lib/krb5/krb/auth_con.c @@ -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 = -- 2.26.2