diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-10-26 21:42:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-10-26 22:40:40 -0400 |
commit | a457cd91fafdce6e7d63ef2089233768498335f2 (patch) | |
tree | 1feff504943205244ba8fce7e1b3ae4b4673f923 | |
parent | 8519d36633882ac5971c363a4920466b054a62f6 (diff) | |
download | tor-a457cd91fafdce6e7d63ef2089233768498335f2.tar.gz tor-a457cd91fafdce6e7d63ef2089233768498335f2.zip |
Clarification to suppress Coverity CID 405.
Every or conn has an outbuf, but coverity has no way of knowing that.
Add an assert to ease its conscience.
-rw-r--r-- | src/or/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index 9605b2bca8..537abcc832 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -731,6 +731,7 @@ run_connection_housekeeping(int i, time_t now) return; /* we're all done here, the rest is just for OR conns */ or_conn = TO_OR_CONN(conn); + tor_assert(conn->outbuf); if (or_conn->is_bad_for_new_circs && !or_conn->n_circuits) { /* It's bad for new circuits, and has no unmarked circuits on it: |