Commit cfa0ac7a authored by Bill Nagel's avatar Bill Nagel Committed by Steve Holme
Browse files

smb: Close the connection after a failed client write

parent cfc86386
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -769,8 +769,11 @@ static CURLcode smb_request_state(struct connectdata *conn, bool *done)
      result = Curl_client_write(conn, CLIENTWRITE_BODY,
                                 (char *)msg + off + sizeof(unsigned int),
                                 len);
      if(result)
        return result;
      if(result) {
        req->result = result;
        next_state = SMB_CLOSE;
        break;
      }
    }
    conn->data->req.bytecount += len;
    conn->data->req.offset += len;