commit e1a0df6849059822ffdd079e4ac670f05857818d Author: David Goulet dgoulet@ev0ke.net Date: Thu Feb 20 12:54:05 2014 +0000
Fix: use connection_get_ref on creation
Signed-off-by: David Goulet dgoulet@ev0ke.net --- src/common/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/connection.c b/src/common/connection.c index 89f991b..4c75579 100644 --- a/src/common/connection.c +++ b/src/common/connection.c @@ -211,7 +211,7 @@ struct connection *connection_create(int fd, const struct sockaddr *dest) }
conn->fd = fd; - conn->refcount.count = 1; + connection_get_ref(conn);
return conn;
tor-commits@lists.torproject.org