summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-04 19:32:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:08 -0500
commit14502053e92d20d9004ffa03767b201c05619a87 (patch)
tree835208dcb492bbaf4b7cdad8b94a7c57a692a90a /source3
parenta65c6b3914cc1e79501d0613e353ac0398a00cb4 (diff)
downloadsamba-14502053e92d20d9004ffa03767b201c05619a87.tar.gz
samba-14502053e92d20d9004ffa03767b201c05619a87.tar.bz2
samba-14502053e92d20d9004ffa03767b201c05619a87.zip
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)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/ldb/common/ldb_utf8.c2
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;
}