From 1fe281e25708b999a3e9ef1d5808a79995fbb438 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 10 Nov 2009 11:04:08 +0100 Subject: [PATCH] s3-rpc_client: protect rpc_pipe_np_smb_conn against a NULL struct rpc_pipe_client. Guenther Part of a fix for bug #6697. --- source/rpc_client/cli_pipe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c index be84c3934ff..6a5802e97f7 100644 --- a/source/rpc_client/cli_pipe.c +++ b/source/rpc_client/cli_pipe.c @@ -2348,6 +2348,9 @@ bool rpccli_get_pwd_hash(struct rpc_pipe_client *cli, uint8_t nt_hash[16]) struct cli_state *rpc_pipe_np_smb_conn(struct rpc_pipe_client *p) { + if (p == NULL) { + return NULL; + } if (p->transport_type == NCACN_NP) { return p->trans.np.cli; } -- 2.47.2