Fix assertion failure spotted by arma.
commita1e4c6dc853c4e2dba534e04045c1d15fd1f15b6
authorNick Mathewson <nickm@torproject.org>
Tue, 2 Mar 2004 07:24:11 +0000 (2 07:24 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 2 Mar 2004 07:24:11 +0000 (2 07:24 +0000)
treedf3e71864ca0a45bb96b47da2ace9019c10d9feb
parentb961732246b8d6ecfead5ef20834626706f08e50
Fix assertion failure spotted by arma.

Apparently, when a DNS failure was already cached, then when we tried
to mark the exit connection as closed, we'd try to remove it from the
pending queue anyway, and hit an assert.  Now, we put failed-resolve
connections in a separate state so that mark_for_close does the right
thing.

svn:r1196
src/or/connection.c
src/or/connection_edge.c
src/or/or.h