mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
fixed a problem with the smb client code spinning when the connection
is lost. We now close the cli_transport when there is a socket io error
This commit is contained in:
parent
da5f22976f
commit
138cb5f2f5
@ -309,7 +309,11 @@ BOOL cli_request_receive(struct cli_request *req)
|
||||
return False;
|
||||
}
|
||||
|
||||
cli_request_receive_next(req->transport);
|
||||
if (!cli_request_receive_next(req->transport)) {
|
||||
cli_transport_close(req->transport);
|
||||
req->status = NT_STATUS_UNEXPECTED_NETWORK_ERROR;
|
||||
return False;
|
||||
}
|
||||
}
|
||||
|
||||
return True;
|
||||
|
Loading…
Reference in New Issue
Block a user