diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-08-13 20:26:24 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-08-13 20:26:24 +0000 |
commit | ea403855075b75150b81e51e96774c95b92f369a (patch) | |
tree | 437b852407c9861f4900e00a8bff968693fe7a8a | |
parent | 7c0b5720854a12a9634c504c9139988be1c253b4 (diff) | |
download | samba-ea403855075b75150b81e51e96774c95b92f369a.tar.gz samba-ea403855075b75150b81e51e96774c95b92f369a.tar.bz2 samba-ea403855075b75150b81e51e96774c95b92f369a.zip |
Only close anything that is not fid 0. Was very confusing in ethereal...
Volker
(This used to be commit 9f453f27be7eeb792b57d5c60284bb5efc84b408)
-rw-r--r-- | source3/libsmb/clientgen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index bc5f1462cc..308ce31fd0 100644 --- 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; } |