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:
parent
a503162ea4
commit
f50e0c3cb4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user