diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-07-13 17:37:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:10:08 -0500 |
commit | 440d0487a6ad9a39630d7364eb54e46367207d05 (patch) | |
tree | 4f506f2aa759c815a55bf00e7baa566669aa1efe /source4/torture/raw | |
parent | 09b9d831c285d04d0159d2ca2f0a82be214bf701 (diff) | |
download | samba-440d0487a6ad9a39630d7364eb54e46367207d05.tar.gz samba-440d0487a6ad9a39630d7364eb54e46367207d05.tar.xz samba-440d0487a6ad9a39630d7364eb54e46367207d05.zip |
r17020: pass the real error to the failing requests
metze
(This used to be commit 49b96ac44a883c020c69df7a12df154dc4faa4d5)
Diffstat (limited to 'source4/torture/raw')
-rw-r--r-- | source4/torture/raw/notify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/raw/notify.c b/source4/torture/raw/notify.c index 577f4612195..b7bbb774b6b 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, ¬ify); - CHECK_STATUS(status, NT_STATUS_NET_WRITE_FAULT); + CHECK_STATUS(status, NT_STATUS_LOCAL_DISCONNECT); done: torture_close_connection(cli); |