summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-08-13 20:26:24 +0000
committerVolker Lendecke <vlendec@samba.org>2003-08-13 20:26:24 +0000
commitea403855075b75150b81e51e96774c95b92f369a (patch)
tree437b852407c9861f4900e00a8bff968693fe7a8a /source3/libsmb
parent7c0b5720854a12a9634c504c9139988be1c253b4 (diff)
downloadsamba-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)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c4
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;
}