diff options
author | Herb Lewis <herb@samba.org> | 2003-08-15 21:37:42 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2003-08-15 21:37:42 +0000 |
commit | a59229614ebeb17f3e4db2edcb70b71f7bf31982 (patch) | |
tree | 7af0af3712983c09a88f38b5e45048d6361fd566 /source4/libcli | |
parent | 649f712f078aa42c590f0ee7f8e48a8dad9d8007 (diff) | |
download | samba-a59229614ebeb17f3e4db2edcb70b71f7bf31982.tar.gz samba-a59229614ebeb17f3e4db2edcb70b71f7bf31982.tar.bz2 samba-a59229614ebeb17f3e4db2edcb70b71f7bf31982.zip |
don't dereference null pointer
(This used to be commit ba5d1cde98f9146ffc889ac89ec79331e2bfae18)
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/cliconnect.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |