git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4917b27
)
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
Karolin Seeger
<kseeger@samba.org>
Tue, 30 Mar 2010 08:33:40 +0000
(10:33 +0200)
metze
(similar to commit
47e10ab9a85960c78af807b66b99bcd139713644
)
(cherry picked from commit
85aae5e96363d0b5b03d31fb36465121d3381cb2
)
source3/libsmb/clientgen.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clientgen.c
b/source3/libsmb/clientgen.c
index 1ea8033fc62ab2c11108dcb7b8dfd927c1aac25d..b9f0024892b02cac8edd04c933a2cea21b699b8e 100644
(file)
--- a/
source3/libsmb/clientgen.c
+++ b/
source3/libsmb/clientgen.c
@@
-695,6
+695,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,