git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d527ab1
)
libdap: Fix a '\0' vs NULL mixup
author
Volker Lendecke
<vl@samba.org>
Mon, 12 Oct 2015 20:10:51 +0000
(22:10 +0200)
committer
Jeremy Allison
<jra@samba.org>
Wed, 14 Oct 2015 00:19:14 +0000
(
02:19
+0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/ldap/ldap_message.c
patch
|
blob
|
history
diff --git
a/libcli/ldap/ldap_message.c
b/libcli/ldap/ldap_message.c
index 0c664b70101540d0ecba3fe969988471ebc10836..bf836271de9012e431e2ec761bba839517737a83 100644
(file)
--- a/
libcli/ldap/ldap_message.c
+++ b/
libcli/ldap/ldap_message.c
@@
-762,7
+762,7
@@
static struct ldb_val **ldap_decode_substring(TALLOC_CTX *mem_ctx, struct ldb_va
}
chunks[chunk_num]->length = strlen(value);
- chunks[chunk_num + 1] =
'\0'
;
+ chunks[chunk_num + 1] =
NULL
;
return chunks;
}