summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2018-03-12 11:12:34 +0100
committerKarolin Seeger <kseeger@samba.org>2018-05-07 09:57:25 +0200
commit406a8f3184ec48017e9d7c4ced7eff5bd1845a19 (patch)
treef448e3427db929ebc311b00fc2cb4075aae5f879 /source3
parent4f793f6935b3ff9f776ec74da6659fc2cbdf7844 (diff)
downloadsamba-406a8f3184ec48017e9d7c4ced7eff5bd1845a19.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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c
index 8449bf3dfd2..c9d3c41cbff 100644
--- a/source3/winbindd/winbindd_dual_srv.c
+++ b/source3/winbindd/winbindd_dual_srv.c
@@ -42,7 +42,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;