git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ca1c09
)
Possible memory leak in map_info6_to_validation
author
Swen Schillig
<swen@vnet.ibm.com>
Fri, 25 May 2018 08:06:21 +0000
(10:06 +0200)
committer
Jeremy Allison
<jra@samba.org>
Fri, 15 Jun 2018 23:06:36 +0000
(
01:06
+0200)
If the call to copy_netr_SamInfo6 returns an error status,
the allocated memory for "validation" needs to be free'd before returning.
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
source3/rpc_client/util_netlogon.c
patch
|
blob
|
history
diff --git
a/source3/rpc_client/util_netlogon.c
b/source3/rpc_client/util_netlogon.c
index 2d73bc95cea07a131e0509a59c838f5f64bf60d2..c57979a126501824460a5ab0579e48786b7cf3f7 100644
(file)
--- a/
source3/rpc_client/util_netlogon.c
+++ b/
source3/rpc_client/util_netlogon.c
@@
-378,6
+378,7
@@
NTSTATUS map_info6_to_validation(TALLOC_CTX *mem_ctx,
info6,
&validation->sam6);
if (!NT_STATUS_IS_OK(status)) {
+ TALLOC_FREE(validation);
return status;
}