1
0
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:
Volker Lendecke 2017-09-13 04:10:59 -07:00
parent 7ddf47951b
commit 954167a001

View File

@ -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;
}