diff options
author | Volker Lendecke <vl@samba.org> | 2016-07-20 10:50:14 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-08-05 22:20:05 +0200 |
commit | 63b88a7275ae7ea87cf06a808b7030ef6c45eacf (patch) | |
tree | c4ad87e3ef5c1e0245b5c133770824e8b5b07d6a /source4/librpc | |
parent | f6db954fd6d6b027ec253d9e17130e4fe0f0db77 (diff) | |
download | samba-63b88a7275ae7ea87cf06a808b7030ef6c45eacf.tar.gz |
pyrpc: Fix CID 1364169 Explicit null dereferenced
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/rpc/pyrpc_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/rpc/pyrpc_util.c b/source4/librpc/rpc/pyrpc_util.c index a9807a891ba..95443f7772c 100644 --- 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 */ - if (timeout != ((unsigned int)-1)) { + if ((timeout != ((unsigned int)-1)) && (ret->binding_handle != NULL)) { dcerpc_binding_handle_set_timeout(ret->binding_handle, timeout); } |