From af72af684bca68c1759be1357f817db7be699eed Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 4 Oct 2006 19:45:34 +0000 Subject: [PATCH] r19074: Merge from 3_0: Fix a potential NULL dereference. Volker --- source/lib/ldb/common/ldb_utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/ldb/common/ldb_utf8.c b/source/lib/ldb/common/ldb_utf8.c index d2d12b8f51a..86ed40535a9 100644 --- a/source/lib/ldb/common/ldb_utf8.c +++ b/source/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; } -- 2.34.1