kdc: Fix leak with PK-INIT-Win2k

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
Joseph Sutton
2023-07-04 12:43:43 +12:00
committed by Nico Williams
parent 71fd391036
commit 4de8b3564e

View File

@@ -681,6 +681,7 @@ _kdc_pk_rd_padata(astgs_request_t priv,
ret = KRB5KRB_ERR_GENERIC;
krb5_set_error_message(context, ret,
"DH not supported for Win2k");
free_AuthPack_Win2k(&ap);
goto out;
}
free_AuthPack_Win2k(&ap);