summaryrefslogtreecommitdiff
path: root/evdns.c
diff options
context:
space:
mode:
Diffstat (limited to 'evdns.c')
-rw-r--r--evdns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/evdns.c b/evdns.c
index ab5dee61..72acefff 100644
--- a/evdns.c
+++ b/evdns.c
@@ -1995,7 +1995,7 @@ server_request_free(struct server_request *req)
EVDNS_LOCK(req->port);
lock=1;
if (req->port->pending_replies == req) {
- if (req->next_pending)
+ if (req->next_pending && req->next_pending != req)
req->port->pending_replies = req->next_pending;
else
req->port->pending_replies = NULL;