diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-10-04 19:45:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:20:33 -0500 |
commit | 9bbc8736e75c7c632b7d274b1f189caf44e78893 (patch) | |
tree | 9921ce205df30b994379ea90c45a84497f6ed458 | |
parent | 118dae99def28d8dcda0dca1b3b4c987f0b38cde (diff) | |
download | samba-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)
-rw-r--r-- | source4/lib/ldb/common/ldb_utf8.c | 2 |
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; } |