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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user