]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2020-1472(ZeroLogon): s3:rpc_server/netlogon: Fix mem leak onto p->mem_ctx in...
authorJeremy Allison <jra@samba.org>
Wed, 16 Sep 2020 19:48:21 +0000 (12:48 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 18 Sep 2020 09:06:21 +0000 (11:06 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14497

Signed-off-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/netlogon/srv_netlog_nt.c

index 516bbd7f6a868ab48fc529e58184d870a5e034c4..b26efb78bab049724fa6db40ca45ed3d4e575969 100644 (file)
@@ -1385,6 +1385,7 @@ NTSTATUS _netr_ServerPasswordSet2(struct pipes_struct *p,
                                                      516);
        }
        if (!NT_STATUS_IS_OK(status)) {
+               TALLOC_FREE(creds);
                return status;
        }