git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21377a7
)
fixed a segv in the python messaging code on 64 bit systems
author
Andrew Tridgell
<tridge@samba.org>
Fri, 30 May 2008 06:11:07 +0000
(16:11 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 30 May 2008 06:11:07 +0000
(16:11 +1000)
(This used to be commit
7598c8389745fcc77da341b4af2dcef6a01db700
)
source4/lib/messaging/pymessaging.c
patch
|
blob
|
history
diff --git
a/source4/lib/messaging/pymessaging.c
b/source4/lib/messaging/pymessaging.c
index 1c22fb431a3a531207e840d8b807576d4bb39526..869508fca65f7f5cbb8c1e3b06478e6db6f8cea3 100644
(file)
--- a/
source4/lib/messaging/pymessaging.c
+++ b/
source4/lib/messaging/pymessaging.c
@@
-127,12
+127,15
@@
static PyObject *py_messaging_send(PyObject *self, PyObject *args, PyObject *kwa
NTSTATUS status;
struct server_id server;
const char *kwnames[] = { "target", "msg_type", "data", NULL };
+ int length;
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "Ois#|:send",
- discard_const_p(char *, kwnames), &target, &msg_type, &data.data, &
data.
length)) {
+ discard_const_p(char *, kwnames), &target, &msg_type, &data.data, &length)) {
return NULL;
}
+ data.length = length;
+
if (!server_id_from_py(target, &server))
return NULL;