git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5632bd1
)
pdb_tdb: Fix a TALLOC/SAFE_FREE mixup
author
Volker Lendecke
<vl@samba.org>
Tue, 11 Nov 2014 10:35:50 +0000
(10:35 +0000)
committer
Karolin Seeger
<kseeger@samba.org>
Tue, 18 Nov 2014 20:09:03 +0000
(21:09 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10932
invalid free in pdb_tdb
source3/passdb/pdb_tdb.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_tdb.c
b/source3/passdb/pdb_tdb.c
index bd6e123e31cfa13a59806f68f1e4c13c8b029a4a..b426d474ba08b47883d2a986239650405590c9d8 100644
(file)
--- a/
source3/passdb/pdb_tdb.c
+++ b/
source3/passdb/pdb_tdb.c
@@
-599,7
+599,7
@@
static NTSTATUS tdbsam_getsampwnam (struct pdb_methods *my_methods,
if (!init_samu_from_buffer(user, SAMU_BUFFER_LATEST, data.dptr, data.dsize)) {
DEBUG(0,("pdb_getsampwent: Bad struct samu entry returned from TDB!\n"));
-
SAFE
_FREE(data.dptr);
+
TALLOC
_FREE(data.dptr);
return NT_STATUS_NO_MEMORY;
}