1
0
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:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent da5f22976f
commit 138cb5f2f5

View File

@ -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;