git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
118dae9
)
r19074: Merge from 3_0: Fix a potential NULL dereference.
author
Volker Lendecke
<vlendec@samba.org>
Wed, 4 Oct 2006 19:45:34 +0000
(19:45 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:20:33 +0000
(14:20 -0500)
Volker
(This used to be commit
af72af684bca68c1759be1357f817db7be699eed
)
source4/lib/ldb/common/ldb_utf8.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb_utf8.c
b/source4/lib/ldb/common/ldb_utf8.c
index d2d12b8f51ac2498e0961272c6bf8fe49e42cd57..86ed40535a9c1756ded80735064439c9f21e72f0 100644
(file)
--- 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;
}