1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s4/librpc/py_misc: ParseTuple format should match actual types

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
Douglas Bagnall 2019-02-07 17:11:41 +13:00 committed by Noel Power
parent 96cdacae14
commit 1e8d0d80d9

View File

@ -144,7 +144,7 @@ static int py_policy_handle_init(PyObject *self, PyObject *args, PyObject *kwarg
struct policy_handle *handle = pytalloc_get_ptr(self); struct policy_handle *handle = pytalloc_get_ptr(self);
const char *kwnames[] = { "uuid", "type", NULL }; const char *kwnames[] = { "uuid", "type", NULL };
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|si", discard_const_p(char *, kwnames), &str, &handle->handle_type)) if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|sI", discard_const_p(char *, kwnames), &str, &handle->handle_type))
return -1; return -1;
if (str != NULL) { if (str != NULL) {