git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16edb6e
)
s4: Fix returns in py_check_dcerpc_type
author
Volker Lendecke
<vl@samba.org>
Thu, 16 Aug 2012 09:38:26 +0000
(11:38 +0200)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source4/librpc/rpc/pyrpc_util.c
b/source4/librpc/rpc/pyrpc_util.c
index d0fa5d72853250eea14f2a308b3948f0c9d4f974..a000c76907dab1e57f816f8bf4e6e8ed2b51f51b 100644
(file)
--- 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);