diff options
-rw-r--r-- | source4/libnet/py_net.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c index 895d2772b3..b43f69bf0f 100644 --- a/source4/libnet/py_net.c +++ b/source4/libnet/py_net.c @@ -44,6 +44,7 @@ typedef struct { static PyObject *py_net_join_member(py_net_Object *self, PyObject *args, PyObject *kwargs) { struct libnet_Join_member r; + int _level = 0; NTSTATUS status; PyObject *result; TALLOC_CTX *mem_ctx; @@ -51,8 +52,10 @@ static PyObject *py_net_join_member(py_net_Object *self, PyObject *args, PyObjec if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ssi:Join", discard_const_p(char *, kwnames), &r.in.domain_name, &r.in.netbios_name, - &r.in.level)) + &_level)) { return NULL; + } + r.in.level = _level; mem_ctx = talloc_new(self->mem_ctx); if (mem_ctx == NULL) { |