From 4bdc5b0d5fa6b620828f33f7b3d116d28ed0afdb Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 24 Sep 2008 18:52:04 -0700 Subject: [PATCH] s3:lib/ldb: Don't return already freed pointer on error. metze Signed-off-by: Karolin Seeger (cherry picked from commit 508cd214ef9abf0d69fbc7f5408d004162092b39) --- source/lib/ldb/common/ldb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/lib/ldb/common/ldb.c b/source/lib/ldb/common/ldb.c index 743711b9672..c8aa6afdfc1 100644 --- a/source/lib/ldb/common/ldb.c +++ b/source/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; -- 2.11.4.GIT