[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torsocks/master] Fix: use connection_get_ref on creation
commit e1a0df6849059822ffdd079e4ac670f05857818d
Author: David Goulet <dgoulet@xxxxxxxxx>
Date: Thu Feb 20 12:54:05 2014 +0000
Fix: use connection_get_ref on creation
Signed-off-by: David Goulet <dgoulet@xxxxxxxxx>
---
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits