[tor-commits] [torsocks/master] Fix: use connection_get_ref on creation
dgoulet at torproject.org
dgoulet at torproject.org
Fri Apr 4 22:40:27 UTC 2014
commit e1a0df6849059822ffdd079e4ac670f05857818d
Author: David Goulet <dgoulet at ev0ke.net>
Date: Thu Feb 20 12:54:05 2014 +0000
Fix: use connection_get_ref on creation
Signed-off-by: David Goulet <dgoulet at 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;
More information about the tor-commits
mailing list