git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c0b572
)
Only close anything that is not fid 0. Was very confusing in ethereal...
author
Volker Lendecke
<vlendec@samba.org>
Wed, 13 Aug 2003 20:26:24 +0000
(20:26 +0000)
committer
Volker Lendecke
<vlendec@samba.org>
Wed, 13 Aug 2003 20:26:24 +0000
(20:26 +0000)
Volker
(This used to be commit
9f453f27be7eeb792b57d5c60284bb5efc84b408
)
source3/libsmb/clientgen.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clientgen.c
b/source3/libsmb/clientgen.c
index bc5f1462cc248bfaf1039142bab8f96852812412..308ce31fd08226776d4acc362326d95da2282161 100644
(file)
--- a/
source3/libsmb/clientgen.c
+++ b/
source3/libsmb/clientgen.c
@@
-339,7
+339,9
@@
void cli_nt_session_close(struct cli_state *cli)
ntlmssp_client_end(&cli->ntlmssp_pipe_state);
}
- cli_close(cli, cli->nt_pipe_fnum);
+ if (cli->nt_pipe_fnum != 0)
+ cli_close(cli, cli->nt_pipe_fnum);
+
cli->nt_pipe_fnum = 0;
cli->pipe_idx = -1;
}