summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/providers/fail_over.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c
index c47e5f730..32ce02860 100644
--- a/src/providers/fail_over.c
+++ b/src/providers/fail_over.c
@@ -1234,6 +1234,11 @@ resolve_srv_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
case SRV_RESOLVE_ERROR: /* query could not be resolved but don't retry yet */
ret = EIO;
state->out = server;
+
+ /* The port status was reseted to neutral but we still haven't reached
+ * timeout to try to resolve SRV record again. We will set the port
+ * status back to not working. */
+ fo_set_port_status(state->meta, PORT_NOT_WORKING);
goto done;
case SRV_RESOLVED: /* The query is resolved and valid. Return. */
state->out = server;