git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
632c208
)
s3:libsmb: don't let cli_shutdown() segfault with a NULL cli_state
author
Stefan Metzmacher
<metze@samba.org>
Mon, 29 Mar 2010 16:23:40 +0000
(18:23 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 7 Apr 2010 11:59:15 +0000
(13:59 +0200)
metze
(similar to commit
47e10ab9a85960c78af807b66b99bcd139713644
)
(cherry picked from commit
957c0d4a5ee67ac70e576155a0f2f6f84cdb1596
)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/libsmb/clientgen.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clientgen.c
b/source3/libsmb/clientgen.c
index 356db57730d9ff1b5b07e6af3e478f1dc5acee78..5dc43e93ad6927808928d47321ac848faa0c98ae 100644
(file)
--- a/
source3/libsmb/clientgen.c
+++ b/
source3/libsmb/clientgen.c
@@
-599,6
+599,10
@@
void cli_nt_pipes_close(struct cli_state *cli)
void cli_shutdown(struct cli_state *cli)
{
+ if (cli == NULL) {
+ return;
+ }
+
if (cli->prev == NULL) {
/*
* Possible head of a DFS list,