From: Volker Lendecke Date: Wed, 20 Jul 2016 08:50:14 +0000 (+0200) Subject: pyrpc: Fix CID 1364169 Explicit null dereferenced X-Git-Tag: tevent-0.9.30~233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63b88a7275ae7ea87cf06a808b7030ef6c45eacf;p=thirdparty%2Fsamba.git pyrpc: Fix CID 1364169 Explicit null dereferenced Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- 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); }