[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torsocks/master] Fix: assert conn->fd typo
commit 2da4625bd2b0dfdee4e7595e2c360690f6ef9790
Author: Luke Gallagher <luke@xxxxxxxxxxxxxxxxxx>
Date: Sat Feb 15 16:32:16 2014 +1100
Fix: assert conn->fd typo
Signed-off-by: David Goulet <dgoulet@xxxxxxxxx>
---
src/common/socks5.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/socks5.c b/src/common/socks5.c
index 81806c6..16bf585 100644
--- a/src/common/socks5.c
+++ b/src/common/socks5.c
@@ -523,7 +523,7 @@ int socks5_recv_resolve_reply(struct connection *conn, void *addr,
} buffer;
assert(conn);
- assert(conn >= 0);
+ assert(conn->fd >= 0);
assert(addr);
ret_recv = recv_data(conn->fd, &buffer, sizeof(buffer.msg));
@@ -657,7 +657,7 @@ int socks5_recv_resolve_ptr_reply(struct connection *conn, char **_hostname)
} buffer;
assert(conn);
- assert(conn >= 0);
+ assert(conn->fd >= 0);
assert(_hostname);
ret_recv = recv_data(conn->fd, &buffer, sizeof(buffer));
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits