diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/ldb/common/ldb_utf8.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |