[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] add conn->requested_resource to connection_t checks.



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv21921/src/or

Modified Files:
	connection.c 
Log Message:
add conn->requested_resource to connection_t checks.

Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/connection.c,v
retrieving revision 1.395
retrieving revision 1.396
diff -u -d -r1.395 -r1.396
--- connection.c	8 Sep 2005 20:18:14 -0000	1.395
+++ connection.c	8 Sep 2005 21:21:54 -0000	1.396
@@ -1952,6 +1952,9 @@
   } else if (conn->type != CONN_TYPE_DIR) {
     tor_assert(!conn->purpose); /* only used for dir types currently */
   }
+  if (conn->type != CONN_TYPE_DIR) {
+    tor_assert(!conn->requested_resource);
+  }
 
   switch (conn->type)
     {