aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-04-21 13:39:00 -0400
committerNick Mathewson <nickm@torproject.org>2011-04-21 13:39:00 -0400
commite98583594d897ac32745061143e565c6f4b45f97 (patch)
treebe565d2405eba93a8285ab6f301d4bc955ebacc9 /src
parentdfc9c6a0f9c0488e437dfbf1181041ca0e194f1d (diff)
downloadtor-e98583594d897ac32745061143e565c6f4b45f97.tar
tor-e98583594d897ac32745061143e565c6f4b45f97.tar.gz
Fix a bug in removing DNSPort requests from their circular list
Under heavy load, this could result in an assertion failure. Fix for bug 2933; bugfix on 0.2.0.10-alpha.
Diffstat (limited to 'src')
-rw-r--r--src/or/eventdns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c
index a889e803e..2777f9098 100644
--- a/src/or/eventdns.c
+++ b/src/or/eventdns.c
@@ -1949,7 +1949,7 @@ server_request_free(struct server_request *req)
if (req->port) {
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;