Only close anything that is not fid 0. Was very confusing in ethereal...
authorVolker Lendecke <vlendec@samba.org>
Wed, 13 Aug 2003 20:26:24 +0000 (20:26 +0000)
committerVolker 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

index bc5f1462cc248bfaf1039142bab8f96852812412..308ce31fd08226776d4acc362326d95da2282161 100644 (file)
@@ -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;
 }