krb5: allow NULL parameter to krb5_pac_free()
This commit is contained in:

committed by
Luke Howard

parent
2acc4508d9
commit
b295167208
@@ -441,6 +441,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);
|
||||
|
Reference in New Issue
Block a user