From ea403855075b75150b81e51e96774c95b92f369a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 13 Aug 2003 20:26:24 +0000 Subject: Only close anything that is not fid 0. Was very confusing in ethereal... Volker (This used to be commit 9f453f27be7eeb792b57d5c60284bb5efc84b408) --- source3/libsmb/clientgen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/libsmb') 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; } -- cgit