From f1706e66b3a6a60576995e287992d4f940694325 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Sat, 18 Apr 1998 18:51:04 +0000 Subject: [PATCH] Zero kdc_reply. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4772 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/init_creds_pw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/krb5/init_creds_pw.c b/lib/krb5/init_creds_pw.c index a3271a1ec..970f7fd7a 100644 --- a/lib/krb5/init_creds_pw.c +++ b/lib/krb5/init_creds_pw.c @@ -393,6 +393,7 @@ krb5_get_init_creds_password(krb5_context context, krb5_data password_data; int done; + memset(&kdc_reply, 0, sizeof(kdc_reply)); ret = get_init_creds_common(context, creds, client, start_time, in_tkt_service, options, &addrs, &etypes, &this_cred, &pre_auth_types, @@ -424,7 +425,6 @@ krb5_get_init_creds_password(krb5_context context, done = 0; while(!done) { - memset(&kdc_reply, 0, sizeof(kdc_reply)); ret = krb5_get_in_cred (context, flags.i, addrs, @@ -503,6 +503,7 @@ krb5_get_init_creds_password(krb5_context context, default: goto out; } + memset(&kdc_reply, 0, sizeof(kdc_reply)); } if (prompter)