mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
netlogon_creds_cli: Fix talloc_stackframe leaks
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
7ddf47951b
commit
954167a001
@ -272,11 +272,13 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx,
|
||||
*_context = NULL;
|
||||
|
||||
if (msg_ctx == NULL) {
|
||||
TALLOC_FREE(frame);
|
||||
return NT_STATUS_INVALID_PARAMETER_MIX;
|
||||
}
|
||||
|
||||
client_computer = lpcfg_netbios_name(lp_ctx);
|
||||
if (strlen(client_computer) > 15) {
|
||||
TALLOC_FREE(frame);
|
||||
return NT_STATUS_INVALID_PARAMETER_MIX;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user