git.samba.org
/
kai
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r9771: - Prevent ldb crash when a invalid DN is added
[kai/samba.git]
/
source
/
lib
/
ldb
/
common
/
ldb_msg.c
diff --git
a/source/lib/ldb/common/ldb_msg.c
b/source/lib/ldb/common/ldb_msg.c
index 197c42ddb5b51748765f60f4ed870896305b6aa6..f65c944eab9168b377f292037fef6886b8fbade1 100644
(file)
--- a/
source/lib/ldb/common/ldb_msg.c
+++ b/
source/lib/ldb/common/ldb_msg.c
@@
-99,7
+99,7
@@
struct ldb_val ldb_val_dup(void *mem_ctx, const struct ldb_val *v)
{
struct ldb_val v2;
v2.length = v->length;
- if (v->
length == 0
) {
+ if (v->
data == NULL
) {
v2.data = NULL;
return v2;
}