diff options
author | Matthieu Patou <mat@matws.net> | 2009-09-17 19:56:02 +0400 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-09-17 19:36:32 +0200 |
commit | aadf5e391063c502ac4f234503106ed784b2af15 (patch) | |
tree | 6d2266973b9fd63445539a82fa4c58bb0f2b8fd1 /source4/librpc | |
parent | 78338d431c6e4ae8e3ff94b0ba9caaae2a5626a9 (diff) | |
download | samba-aadf5e391063c502ac4f234503106ed784b2af15.tar.gz samba-aadf5e391063c502ac4f234503106ed784b2af15.tar.bz2 samba-aadf5e391063c502ac4f234503106ed784b2af15.zip |
pyldb: Don't segfault when invalid type is specified to as_sddl and from_sddl.
Fix bug #6723
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/ndr/py_security.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/librpc/ndr/py_security.c b/source4/librpc/ndr/py_security.c index 8ab790d470..02dc059f05 100644 --- a/source4/librpc/ndr/py_security.c +++ b/source4/librpc/ndr/py_security.c @@ -173,7 +173,7 @@ static PyObject *py_descriptor_from_sddl(PyObject *self, PyObject *args) PyObject *py_sid; struct dom_sid *sid; - if (!PyArg_ParseTuple(args, "sO", &sddl, &py_sid)) + if (!PyArg_ParseTuple(args, "sO!", &sddl, &dom_sid_Type, &py_sid)) return NULL; sid = py_talloc_get_ptr(py_sid); @@ -195,7 +195,7 @@ static PyObject *py_descriptor_as_sddl(PyObject *self, PyObject *args) char *text; PyObject *ret; - if (!PyArg_ParseTuple(args, "|O", &py_sid)) + if (!PyArg_ParseTuple(args, "|O!", &dom_sid_Type, &py_sid)) return NULL; if (py_sid != Py_None) |