git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
da5f229
)
fixed a problem with the smb client code spinning when the connection
author
Andrew Tridgell
<tridge@samba.org>
Sat, 21 Feb 2004 04:02:00 +0000
(
04:02
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Sat, 21 Feb 2004 04:02:00 +0000
(
04:02
+0000)
is lost. We now close the cli_transport when there is a socket io
error
source/libcli/raw/rawrequest.c
patch
|
blob
|
history
diff --git
a/source/libcli/raw/rawrequest.c
b/source/libcli/raw/rawrequest.c
index 4191d3775eeb48a88429ad9094e2c867a82524e0..2b84345abb1d6ded1c37e5df435bc1382b0290ee 100644
(file)
--- a/
source/libcli/raw/rawrequest.c
+++ b/
source/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;