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)
committerStefan Metzmacher <metze@samba.org>
Fri, 18 Sep 2020 11:27:16 +0000 (13:27 +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 548efb44ad2867ff836a60465642e6d82e8b1e33..2b68a2db15ab168166835516dc3bce6a292c3983 100644 (file)
@@ -1386,6 +1386,7 @@ NTSTATUS _netr_ServerPasswordSet2(struct pipes_struct *p,
                                                      516);
        }
        if (!NT_STATUS_IS_OK(status)) {
+               TALLOC_FREE(creds);
                return status;
        }