1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s4:gensec Avoid memory leak in error case in gensec_gssapi

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Joseph Sutton 2022-10-12 13:56:55 +13:00 committed by Douglas Bagnall
parent a503162ea4
commit f50e0c3cb4

View File

@ -836,6 +836,7 @@ init_sec_context_done:
}
if (output_token.length < 4) {
gss_release_buffer(&min_stat, &output_token);
return NT_STATUS_INVALID_PARAMETER;
}
@ -989,6 +990,7 @@ init_sec_context_done:
}
if (output_token.length < 4) {
gss_release_buffer(&min_stat, &output_token);
return NT_STATUS_INVALID_PARAMETER;
}