diff options
author | Ralph Boehme <slow@samba.org> | 2018-03-12 11:12:34 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-04-20 11:56:22 +0200 |
commit | 5c701c461676a37b57f6b628e3729e8366699dda (patch) | |
tree | 3649fe1ac47c2d8edff41a64d95385453745042f /source3 | |
parent | 586a0ff38fa43ee837d10c982a480449d53ba88d (diff) | |
download | samba-5c701c461676a37b57f6b628e3729e8366699dda.tar.gz |
winbindd: check for NT_STATUS_IO_DEVICE_ERROR in reset_cm_connection_on_error()
reconnect_need_retry() already checks for this error, it surfaces up
from tstream_smbXcli_np as a mapping for EIO.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13332
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit a33c1d25e0422483c903001dd246626f84c4cbc1)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd_dual_srv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index 66b4ee82a25..7eff25a5bdf 100644 --- a/source3/winbindd/winbindd_dual_srv.c +++ b/source3/winbindd/winbindd_dual_srv.c @@ -44,7 +44,9 @@ void _wbint_Ping(struct pipes_struct *p, struct wbint_Ping *r) static bool reset_cm_connection_on_error(struct winbindd_domain *domain, NTSTATUS status) { - if (NT_STATUS_EQUAL(status, NT_STATUS_IO_TIMEOUT)) { + if (NT_STATUS_EQUAL(status, NT_STATUS_IO_TIMEOUT) || + NT_STATUS_EQUAL(status, NT_STATUS_IO_DEVICE_ERROR)) + { invalidate_cm_connection(domain); /* We invalidated the connection. */ return true; |