summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2019-02-07 17:11:41 +1300
committerNoel Power <npower@samba.org>2019-02-08 13:31:39 +0100
commit1e8d0d80d95ff3f9f5f05153d14b24b7122e0d43 (patch)
tree31d166a39e279ac4f1e77f0fc702ca618ace43b0 /source4/librpc
parent96cdacae1475847fa5005370a4fcb5fcacfb4dbc (diff)
downloadsamba-1e8d0d80d95ff3f9f5f05153d14b24b7122e0d43.tar.gz
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>
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/ndr/py_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/ndr/py_misc.c b/source4/librpc/ndr/py_misc.c
index 181f19aec92..187fdb784cf 100644
--- a/source4/librpc/ndr/py_misc.c
+++ b/source4/librpc/ndr/py_misc.c
@@ -144,7 +144,7 @@ static int py_policy_handle_init(PyObject *self, PyObject *args, PyObject *kwarg
struct policy_handle *handle = pytalloc_get_ptr(self);
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;
if (str != NULL) {