]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Clarification to suppress Coverity CID 405.
authorNick Mathewson <nickm@torproject.org>
Tue, 27 Oct 2009 01:42:15 +0000 (21:42 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 27 Oct 2009 02:40:40 +0000 (22:40 -0400)
Every or conn has an outbuf, but coverity has no way of knowing that.
Add an assert to ease its conscience.

src/or/main.c

index 9605b2bca8e2d1aba3e1437a97c8bc562ad2d320..537abcc8326d8b225afc679e377d364cdb3afb28 100644 (file)
@@ -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: