diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/krb5/krb/mk_req_ext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/mk_req_ext.c b/src/lib/krb5/krb/mk_req_ext.c index 585ebde20..b4d60177a 100644 --- a/src/lib/krb5/krb/mk_req_ext.c +++ b/src/lib/krb5/krb/mk_req_ext.c @@ -205,7 +205,7 @@ cleanup: request.authenticator.ciphertext.length); free(request.authenticator.ciphertext.data); } - if (newkey && *newkey) + if (retval && newkey && *newkey) krb5_free_keyblock(context, *newkey); if (scratch) { memset(scratch->data, 0, scratch->length); |
