]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
finally tracked down the seg fault
authorRoger Dingledine <arma@torproject.org>
Sun, 14 Sep 2003 06:43:18 +0000 (06:43 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 14 Sep 2003 06:43:18 +0000 (06:43 +0000)
svn:r455

src/or/connection.c
src/or/main.c

index fe18c8baec076f11c88e12393666d7468d5848b8..1cf6f619a19fbedec21076287ff0a8c6f4acf571 100644 (file)
@@ -249,7 +249,7 @@ int connection_handle_listener_read(connection_t *conn, int new_type) {
   }
 
   if(connection_init_accepted_conn(newconn) < 0) {
-    connection_free(newconn);
+    newconn->marked_for_close = 1;
     return 0;
   }
   return 0;
index 6b1277720518869b08d82d83fc8e29fbee25ba48..3fe57fcdb5ccfd275a5f9325eec1d3155017f647 100644 (file)
@@ -676,6 +676,7 @@ build_directory(directory_t *dir) {
       continue; /* we only want to list ones that successfully handshaked */
     router = router_get_by_addr_port(conn->addr,conn->port);
     if(!router) {
+      /* XXX this legitimately happens when conn is an OP. How to detect this? */
       log(LOG_ERR,"build_directory(): couldn't find router %d:%d!",
           conn->addr,conn->port);
       continue;