diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-09-24 18:52:04 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-09-25 07:15:18 -0700 |
commit | f27774729e8c88615b9d3d25a85cae0a1fc35c4f (patch) | |
tree | aed864ba6b360b8c79a84d955c9cc216a471bf8a /source3/lib | |
parent | 0cf717512659469a9b293685ba2a6db4742dcff7 (diff) | |
download | samba-f27774729e8c88615b9d3d25a85cae0a1fc35c4f.tar.gz samba-f27774729e8c88615b9d3d25a85cae0a1fc35c4f.tar.bz2 samba-f27774729e8c88615b9d3d25a85cae0a1fc35c4f.zip |
s3:lib/ldb: Don't return already freed pointer on error.
metze
Signed-off-by: Karolin Seeger <kseeger@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/ldb/common/ldb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/ldb/common/ldb.c b/source3/lib/ldb/common/ldb.c index 743711b967..c8aa6afdfc 100644 --- a/source3/lib/ldb/common/ldb.c +++ b/source3/lib/ldb/common/ldb.c @@ -787,6 +787,7 @@ int ldb_search(struct ldb_context *ldb, done: if (ret != LDB_SUCCESS) { talloc_free(res); + res = NULL; } *_res = res; |