mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
fixed a segv in the python messaging code on 64 bit systems
(This used to be commit 7598c83897
)
This commit is contained in:
parent
21377a7ea9
commit
07e6a0fd8a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user