Commit e9858359 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

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.
parent dfc9c6a0
Loading
Loading
Loading
Loading

changes/bug2933

0 → 100644
+4 −0
Original line number Diff line number Diff line
  o Minor bugfixes
    - Fix an uncommon assertion failure when running with DNSPort under
      heavy load.  Fixes bug 2933; bugfix on 2.0.1-alpha.
+1 −1
Original line number Diff line number Diff line
@@ -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;