not try to free random stack garbage on error
authorEzra Peisach <epeisach@mit.edu>
Sun, 25 Oct 2009 23:31:02 +0000 (23:31 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sun, 25 Oct 2009 23:31:02 +0000 (23:31 +0000)
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

src/plugins/preauth/encrypted_challenge/encrypted_challenge_main.c

index 95d0f8a3110275605d73e8c6f8295b39bce3703b..1229d2a7d3ab3187e0e719750fd18026d74340b2 100644 (file)
@@ -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);