diff options
-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; |