From 00e91b3c8de2096ee0a8c6a341c305ecaf801f46 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 20 Apr 2011 13:27:31 -0400 Subject: [PATCH] Fix a crash bug in evdns server circular list code Really, this should use a circleq. That's a change for 2.1, though. --- evdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evdns.c b/evdns.c index 583c253a..ae39d17e 100644 --- a/evdns.c +++ b/evdns.c @@ -1993,7 +1993,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; -- 2.40.0