From 14502053e92d20d9004ffa03767b201c05619a87 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 4 Oct 2006 19:32:55 +0000 Subject: r19072: Fix a potential NULL dereference. Simo/Tridge, not merging yet to 4_0, I'd like you to comment. Volker (This used to be commit ba18c58f1fb618447ba39bae6ef8f4e6c00c4d32) --- source3/lib/ldb/common/ldb_utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/ldb') diff --git a/source3/lib/ldb/common/ldb_utf8.c b/source3/lib/ldb/common/ldb_utf8.c index d2d12b8f51..86ed40535a 100644 --- a/source3/lib/ldb/common/ldb_utf8.c +++ b/source3/lib/ldb/common/ldb_utf8.c @@ -126,7 +126,7 @@ char *ldb_attr_casefold(void *mem_ctx, const char *s) { int i; char *ret = talloc_strdup(mem_ctx, s); - if (!s) { + if (!ret) { errno = ENOMEM; return NULL; } -- cgit