summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-08-16 11:38:26 +0200
committerAndrew Bartlett <abartlet@samba.org>2012-08-17 00:57:19 +0200
commit5251d07e625d945f90b746d4dabcfe6d98cc5d89 (patch)
tree4e3100d9f5842a9545d3127aca9ac698bac41de5
parent16edb6eb7bf48026129a85e3c00ca9309d5c54c5 (diff)
downloadsamba-5251d07e625d945f90b746d4dabcfe6d98cc5d89.tar.gz
samba-5251d07e625d945f90b746d4dabcfe6d98cc5d89.tar.bz2
samba-5251d07e625d945f90b746d4dabcfe6d98cc5d89.zip
s4: Fix returns in py_check_dcerpc_type
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/librpc/rpc/pyrpc_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/librpc/rpc/pyrpc_util.c b/source4/librpc/rpc/pyrpc_util.c
index d0fa5d7285..a000c76907 100644
--- a/source4/librpc/rpc/pyrpc_util.c
+++ b/source4/librpc/rpc/pyrpc_util.c
@@ -42,7 +42,7 @@ bool py_check_dcerpc_type(PyObject *obj, const char *module, const char *type_na
if (mod == NULL) {
PyErr_Format(PyExc_RuntimeError, "Unable to import %s to check type %s",
module, type_name);
- return NULL;
+ return false;
}
type = (PyTypeObject *)PyObject_GetAttrString(mod, type_name);
@@ -50,7 +50,7 @@ bool py_check_dcerpc_type(PyObject *obj, const char *module, const char *type_na
if (type == NULL) {
PyErr_Format(PyExc_RuntimeError, "Unable to find type %s in module %s",
module, type_name);
- return NULL;
+ return false;
}
ret = PyObject_TypeCheck(obj, type);