git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6db954
)
pyrpc: Fix CID 1364169 Explicit null dereferenced
author
Volker Lendecke
<vl@samba.org>
Wed, 20 Jul 2016 08:50:14 +0000
(10:50 +0200)
committer
Jeremy Allison
<jra@samba.org>
Fri, 5 Aug 2016 20:20:05 +0000
(22:20 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@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 a9807a891ba1ea895890b2ab51a5056f970f2aec..95443f7772ce00fa1489bb65f250e058c56f8e01 100644
(file)
--- a/
source4/librpc/rpc/pyrpc_util.c
+++ b/
source4/librpc/rpc/pyrpc_util.c
@@
-234,7
+234,7
@@
PyObject *py_dcerpc_interface_init_helper(PyTypeObject *type, PyObject *args, Py
}
/* reset timeout for the handle */
}
/* reset timeout for the handle */
- if (
timeout != ((unsigned int)-1
)) {
+ if (
(timeout != ((unsigned int)-1)) && (ret->binding_handle != NULL
)) {
dcerpc_binding_handle_set_timeout(ret->binding_handle, timeout);
}
dcerpc_binding_handle_set_timeout(ret->binding_handle, timeout);
}