mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
krb5: allow NULL parameter to krb5_pac_free()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14642 BUG: https://bugzilla.samba.org/show_bug.cgi?id=14881 [jsutton@samba.org Cherry-picked from Heimdal commit b295167208a96e68515902138f6ce93972892ec5] Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit 2d09de5c41e729bccc2d7949d8a3568a95e80e76)
This commit is contained in:
parent
2d2da2af26
commit
5c5ca93aab
@ -2074,8 +2074,7 @@ out:
|
||||
|
||||
free_EncTicketPart(&adtkt);
|
||||
|
||||
if (mspac)
|
||||
krb5_pac_free(context, mspac);
|
||||
krb5_pac_free(context, mspac);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -435,6 +435,8 @@ krb5_pac_get_types(krb5_context context,
|
||||
KRB5_LIB_FUNCTION void KRB5_LIB_CALL
|
||||
krb5_pac_free(krb5_context context, krb5_pac pac)
|
||||
{
|
||||
if (pac == NULL)
|
||||
return;
|
||||
krb5_data_free(&pac->data);
|
||||
krb5_data_free(&pac->ticket_sign_data);
|
||||
free(pac->pac);
|
||||
|
Loading…
x
Reference in New Issue
Block a user