summaryrefslogtreecommitdiff
path: root/source4/torture/raw/openbench.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-04 20:19:05 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-04 21:22:43 +1100
commit6cf5bdd3d389a2bf30a2cd7118061d037888ab94 (patch)
tree6ecb099c0fa2a314dc44f4fddcf8a05fad1c8dbd /source4/torture/raw/openbench.c
parent259ba3ab8751d0792c0ce4ddecd68f8f98cf1bd9 (diff)
downloadsamba-6cf5bdd3d389a2bf30a2cd7118061d037888ab94.tar.gz
samba-6cf5bdd3d389a2bf30a2cd7118061d037888ab94.tar.bz2
samba-6cf5bdd3d389a2bf30a2cd7118061d037888ab94.zip
s4-torture: handle NT_STATUS_CONNECTION_RESET
a CONNECTION_RESET is now the normal "client disconnect" status code
Diffstat (limited to 'source4/torture/raw/openbench.c')
-rw-r--r--source4/torture/raw/openbench.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/torture/raw/openbench.c b/source4/torture/raw/openbench.c
index 2716f6a528..837b7c345a 100644
--- a/source4/torture/raw/openbench.c
+++ b/source4/torture/raw/openbench.c
@@ -222,7 +222,8 @@ static void open_completed(struct smbcli_request *req)
state->req_open = NULL;
if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE) ||
- NT_STATUS_EQUAL(status, NT_STATUS_LOCAL_DISCONNECT)) {
+ NT_STATUS_EQUAL(status, NT_STATUS_LOCAL_DISCONNECT) ||
+ NT_STATUS_EQUAL(status, NT_STATUS_CONNECTION_RESET)) {
talloc_free(state->tree);
talloc_free(state->cli);
state->tree = NULL;
@@ -281,7 +282,8 @@ static void close_completed(struct smbcli_request *req)
state->req_close = NULL;
if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE) ||
- NT_STATUS_EQUAL(status, NT_STATUS_LOCAL_DISCONNECT)) {
+ NT_STATUS_EQUAL(status, NT_STATUS_LOCAL_DISCONNECT) ||
+ NT_STATUS_EQUAL(status, NT_STATUS_CONNECTION_RESET)) {
talloc_free(state->tree);
talloc_free(state->cli);
state->tree = NULL;
@@ -315,7 +317,8 @@ static void echo_completion(struct smbcli_request *req)
struct benchopen_state *state = (struct benchopen_state *)req->async.private_data;
NTSTATUS status = smbcli_request_simple_recv(req);
if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE) ||
- NT_STATUS_EQUAL(status, NT_STATUS_LOCAL_DISCONNECT)) {
+ NT_STATUS_EQUAL(status, NT_STATUS_LOCAL_DISCONNECT) ||
+ NT_STATUS_EQUAL(status, NT_STATUS_CONNECTION_RESET)) {
talloc_free(state->tree);
state->tree = NULL;
num_connected--;