summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/basic/delete.c2
-rw-r--r--source4/torture/raw/notify.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/basic/delete.c b/source4/torture/basic/delete.c
index d3f7de201f..445333ca6f 100644
--- a/source4/torture/basic/delete.c
+++ b/source4/torture/basic/delete.c
@@ -1592,7 +1592,7 @@ static BOOL deltest21(struct smbcli_state **ppcli1, struct smbcli_state **ppcli2
correct &= check_delete_on_close(cli1, fnum1, fname, True, __location__);
/* Now yank the rug from under cli1. */
- smbcli_transport_dead(cli1->transport);
+ smbcli_transport_dead(cli1->transport, NT_STATUS_LOCAL_DISCONNECT);
fnum1 = -1;
diff --git a/source4/torture/raw/notify.c b/source4/torture/raw/notify.c
index 577f461219..b7bbb774b6 100644
--- a/source4/torture/raw/notify.c
+++ b/source4/torture/raw/notify.c
@@ -842,7 +842,7 @@ done:
static void tcp_dis_handler(struct smbcli_transport *t, void *p)
{
struct smbcli_state *cli = p;
- smbcli_transport_dead(cli->transport);
+ smbcli_transport_dead(cli->transport, NT_STATUS_LOCAL_DISCONNECT);
cli->transport = NULL;
cli->tree = NULL;
}
@@ -898,7 +898,7 @@ static BOOL test_notify_tcp_dis(TALLOC_CTX *mem_ctx)
smbcli_transport_idle_handler(cli->transport, tcp_dis_handler, 250, cli);
status = smb_raw_changenotify_recv(req, mem_ctx, &notify);
- CHECK_STATUS(status, NT_STATUS_NET_WRITE_FAULT);
+ CHECK_STATUS(status, NT_STATUS_LOCAL_DISCONNECT);
done:
torture_close_connection(cli);