diff options
author | Volker Lendecke <vl@samba.org> | 2017-09-13 04:10:59 -0700 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2017-09-25 09:43:11 +0200 |
commit | 954167a0014b8e3e989d57757d5e97be0e225e27 (patch) | |
tree | 1557e5bc96165d153d6e50f72ff7654e53e56587 /libcli | |
parent | 7ddf47951bd472841c5f365e5fff7d28b1ce4972 (diff) | |
download | samba-954167a0014b8e3e989d57757d5e97be0e225e27.tar.gz |
netlogon_creds_cli: Fix talloc_stackframe leaks
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/auth/netlogon_creds_cli.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c index dc05316ac13..847922c0256 100644 --- a/libcli/auth/netlogon_creds_cli.c +++ b/libcli/auth/netlogon_creds_cli.c @@ -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; } |