]> git.ipfire.org Git - thirdparty/tor.git/commit
Improved bug-957 fix for 0.2.2.
authorNick Mathewson <nickm@torproject.org>
Fri, 22 May 2009 18:06:39 +0000 (14:06 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 22 May 2009 18:06:39 +0000 (14:06 -0400)
commita3fadddd4a08d1eeb1f0cf100d3fd6c60f445fcc
tree200788a3df638ba209818aabb942e3ae9426890a
parent4201a3735f21e257494b8d523ebb19059caf4da3
Improved bug-957 fix for 0.2.2.

Really, our idiocy was that we were calling event_set() on the same
event more than once, which sometimes led to us calling event_set() on
an event that was already inserted, thus making it look uninserted.
With this patch, we just initialize the timeout events when we create
the requests and nameservers, and we don't need to worry about
double-add and double-del cases at all.
src/or/eventdns.c