Browse Source

r13406@catbus: nickm | 2007-06-13 17:05:30 -0400
Oops; linked connections get read/write events too.


svn:r10596

Nick Mathewson 18 years ago
parent
commit
c2ea3e9aea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/main.c

+ 1 - 1
src/or/main.c

@@ -171,7 +171,7 @@ connection_add(connection_t *conn)
   conn->conn_array_index = smartlist_len(connection_array);
   smartlist_add(connection_array, conn);
 
-  if (conn->s >= 0) {
+  if (conn->s >= 0 || conn->linked) {
     conn->read_event = tor_malloc_zero(sizeof(struct event));
     conn->write_event = tor_malloc_zero(sizeof(struct event));
     event_set(conn->read_event, conn->s, EV_READ|EV_PERSIST,