From 63b88a7275ae7ea87cf06a808b7030ef6c45eacf Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 20 Jul 2016 10:50:14 +0200 Subject: [PATCH] pyrpc: Fix CID 1364169 Explicit null dereferenced Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source4/librpc/rpc/pyrpc_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.2