summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-04 19:45:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:33 -0500
commit9bbc8736e75c7c632b7d274b1f189caf44e78893 (patch)
tree9921ce205df30b994379ea90c45a84497f6ed458 /source4/lib/ldb
parent118dae99def28d8dcda0dca1b3b4c987f0b38cde (diff)
downloadsamba-9bbc8736e75c7c632b7d274b1f189caf44e78893.tar.gz
samba-9bbc8736e75c7c632b7d274b1f189caf44e78893.tar.bz2
samba-9bbc8736e75c7c632b7d274b1f189caf44e78893.zip
r19074: Merge from 3_0: Fix a potential NULL dereference.
Volker (This used to be commit af72af684bca68c1759be1357f817db7be699eed)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/common/ldb_utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_utf8.c b/source4/lib/ldb/common/ldb_utf8.c
index d2d12b8f51..86ed40535a 100644
--- a/source4/lib/ldb/common/ldb_utf8.c
+++ b/source4/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;
}