r19074: Merge from 3_0: Fix a potential NULL dereference.
authorVolker Lendecke <vlendec@samba.org>
Wed, 4 Oct 2006 19:45:34 +0000 (19:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:20:33 +0000 (14:20 -0500)
Volker

source/lib/ldb/common/ldb_utf8.c

index d2d12b8f51ac2498e0961272c6bf8fe49e42cd57..86ed40535a9c1756ded80735064439c9f21e72f0 100644 (file)
@@ -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;
        }