summaryrefslogtreecommitdiff
path: root/src/forward.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/forward.c')
-rw-r--r--src/forward.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/forward.c b/src/forward.c
index 02f8f81..52d5b8e 100644
--- a/src/forward.c
+++ b/src/forward.c
@@ -389,8 +389,10 @@ static int forward_query(int udpfd, union mysockaddr *udpaddr,
#endif
{
/* retry on existing query, from original source. Send to all available servers */
- if (!fast_retry)
+ if (udpfd == -1 && !fast_retry)
forward->sentto->failed_queries++;
+ else
+ forward->sentto->retrys++;
if (!filter_servers(forward->sentto->arrayposn, F_SERVER, &first, &last))
goto reply;