s4: Fix returns in py_check_dcerpc_type
authorVolker Lendecke <vl@samba.org>
Thu, 16 Aug 2012 09:38:26 +0000 (11:38 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 16 Aug 2012 22:57:19 +0000 (00:57 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/librpc/rpc/pyrpc_util.c

index d0fa5d72853250eea14f2a308b3948f0c9d4f974..a000c76907dab1e57f816f8bf4e6e8ed2b51f51b 100644 (file)
@@ -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);