When iterating over connections pending DNS, skip marked ones

Failure to do this would lead to double-free cases and similar,
especially when the exit's DNS was broken. See bug 6472 for full
details; this is a fix for 6472.

Anonymous patch from "cypherpunks" on trac.
This commit is contained in:
Nick Mathewson
2012-08-17 16:46:11 -04:00
parent 9ed87b37d0
commit 223e7cfabe
2 changed files with 16 additions and 4 deletions
+4
View File
@@ -0,0 +1,4 @@
o Minor bugfixes:
- Avoid a pair of double-free and use-after-mark bugs that can
occur with certain timings in canceled and re-received DNS
requests. Fix for bug 6472; bugfix on 0.0.7rc1.