git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0441ff3
)
SQ fix py_ldb_msg_element_new
author
Stefan Metzmacher
<metze@samba.org>
Tue, 3 Nov 2015 09:44:24 +0000
(10:44 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 4 Nov 2015 12:12:00 +0000
(13:12 +0100)
lib/ldb/pyldb.c
patch
|
blob
|
history
diff --git
a/lib/ldb/pyldb.c
b/lib/ldb/pyldb.c
index 8ff89e337e50d8a2ec37395b9831d49753df267b..ba7186036f73c86bb84b67e2eed51691da9c77d3 100644
(file)
--- a/
lib/ldb/pyldb.c
+++ b/
lib/ldb/pyldb.c
@@
-2670,7
+2670,7
@@
static PyObject *py_ldb_msg_element_new(PyTypeObject *type, PyObject *args, PyOb
}
msg = _msg;
el->values[0].data = talloc_memdup(el->values,
- (const uint8_t *)msg, size);
+ (const uint8_t *)msg, size
+ 1
);
el->values[0].length = size;
} else if (PySequence_Check(py_elements)) {
el->num_values = PySequence_Size(py_elements);