From 97c3cc09827c370a96691b970d4e3ec5d973d4c2 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sun, 25 Oct 2009 23:31:02 +0000 Subject: [PATCH] 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 --- .../preauth/encrypted_challenge/encrypted_challenge_main.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.26.2