diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-02-21 04:02:00 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2004-02-21 04:02:00 +0000 |
commit | 6c7e231773ec83c0ec31df51866ad5765e593100 (patch) | |
tree | 628b93c3e2e0ce833afc41b4177c46146448e746 /source4/libcli | |
parent | 64cdbddbc1e0f63302aee4f02213d7a771feb315 (diff) | |
download | samba-6c7e231773ec83c0ec31df51866ad5765e593100.tar.gz samba-6c7e231773ec83c0ec31df51866ad5765e593100.tar.bz2 samba-6c7e231773ec83c0ec31df51866ad5765e593100.zip |
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 used to be commit 138cb5f2f5f8ce1479ac687d18e6a0e355e55b7f)
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/raw/rawrequest.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/libcli/raw/rawrequest.c b/source4/libcli/raw/rawrequest.c index 4191d3775e..2b84345abb 100644 --- a/source4/libcli/raw/rawrequest.c +++ b/source4/libcli/raw/rawrequest.c @@ -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; |