1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

Another patch to fix cli_reestablish_connection from Kenichi Okuyama@Tokyo Research Lab. IBM-Japan. Co. Jp.

Jeremy.
(This used to be commit 06f5da5d4b)
This commit is contained in:
Jeremy Allison
2000-10-28 20:54:45 +00:00
parent 1cb444057a
commit e2d1dd47d8

View File

@ -626,10 +626,8 @@ BOOL cli_reestablish_connection(struct cli_state *cli)
dest_host, &cli->dest_ip,
&calling, &called,
share, dev, False, do_tcon)) {
if (cli->fd != oldfd) {
if (dup2(cli->fd, oldfd) == oldfd) {
close(cli->fd);
}
if ((cli->fd != oldfd) && (oldfd != -1)) {
close( oldfd );
}
return True;
}