diff --git a/lib/krb5/get_cred.c b/lib/krb5/get_cred.c index 5ce27d968..82b8b0c5d 100644 --- a/lib/krb5/get_cred.c +++ b/lib/krb5/get_cred.c @@ -108,6 +108,7 @@ set_auth_data (krb5_context context, if (ret) { free (buf); free (req_body->enc_authorization_data); + req_body->enc_authorization_data = NULL; return ret; } krb5_encrypt_EncryptedData(context,