mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:py_net: PyArg_ParseTuple("i") requires an 'int' argument
If we pass variable references we don't get implicit casting! metze
This commit is contained in:
parent
3b11ee1db1
commit
5d68c4eb44
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user