diff options
-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); } |