From b9e863fc7edcd35f2716d07e96d0aee16171cffa Mon Sep 17 00:00:00 2001 From: =?utf-8?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 --- source/rpc_client/cli_pipe.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c index be84c39..6a5802e 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; } -- 1.6.2.5