diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2009-10-25 23:31:02 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2009-10-25 23:31:02 +0000 |
| commit | 97c3cc09827c370a96691b970d4e3ec5d973d4c2 (patch) | |
| tree | f33f71e1149330e7d63a19174d46eb90fbdd2629 /src/plugins | |
| parent | bcf53ee81c486aaab504d9524712504a5ae3d67f (diff) | |
| download | krb5-97c3cc09827c370a96691b970d4e3ec5d973d4c2.tar.gz krb5-97c3cc09827c370a96691b970d4e3ec5d973d4c2.tar.xz krb5-97c3cc09827c370a96691b970d4e3ec5d973d4c2.zip | |
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
Diffstat (limited to 'src/plugins')
| -rw-r--r-- | src/plugins/preauth/encrypted_challenge/encrypted_challenge_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
