From: Ezra Peisach Date: Sun, 25 Oct 2009 23:31:02 +0000 (+0000) Subject: not try to free random stack garbage on error X-Git-Tag: krb5-1.8-alpha1~267 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=97c3cc09827c370a96691b970d4e3ec5d973d4c2;p=krb5.git not try to free random stack garbage on error kdc_return_preauth: Set enc.ciphertext.data to null to ensure we do git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23040 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/plugins/preauth/encrypted_challenge/encrypted_challenge_main.c b/src/plugins/preauth/encrypted_challenge/encrypted_challenge_main.c index 95d0f8a31..1229d2a7d 100644 --- a/src/plugins/preauth/encrypted_challenge/encrypted_challenge_main.c +++ b/src/plugins/preauth/encrypted_challenge/encrypted_challenge_main.c @@ -339,6 +339,8 @@ static krb5_error_code kdc_return_preauth return 0; * pa_request_context = NULL; /*this function will free the * challenge key*/ + enc.ciphertext.data = NULL; /* In case of error pass through */ + retval = krb5_us_timeofday(context, &ts.patimestamp, &ts.pausec); if (retval == 0) retval = kaccess.encode_enc_ts(&ts, &plain);