From a59229614ebeb17f3e4db2edcb70b71f7bf31982 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Fri, 15 Aug 2003 21:37:42 +0000 Subject: don't dereference null pointer (This used to be commit ba5d1cde98f9146ffc889ac89ec79331e2bfae18) --- source4/libcli/cliconnect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/libcli/cliconnect.c b/source4/libcli/cliconnect.c index 03112176d4..ea5f4e8a5d 100644 --- a/source4/libcli/cliconnect.c +++ b/source4/libcli/cliconnect.c @@ -211,7 +211,7 @@ struct cli_state *cli_state_init(void) ****************************************************************************/ void cli_shutdown(struct cli_state *cli) { - if (!cli) return; + if (!cli || !cli->tree) return; cli->tree->reference_count++; cli_tree_close(cli->tree); if (cli->mem_ctx) { -- cgit