Skip to content

Commit

Permalink
winbindd: check for NT_STATUS_IO_DEVICE_ERROR in reset_cm_connection_…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Reviewed-by: Volker Lendecke <[email protected]>
  • Loading branch information
slowfranklin committed Mar 15, 2018
1 parent a8d5e4d commit a33c1d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source3/winbindd/winbindd_dual_srv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a33c1d2

Please sign in to comment.