[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torsocks/master] Fix: assert conn->fd typo



commit 19ff1a81a826c4c2ab74d6cef45a9e4cd1c15704
Author: Luke Gallagher <luke@xxxxxxxxxxxxxxxxxx>
Date:   Wed Feb 19 11:39:19 2014 +1100

    Fix: assert conn->fd typo
    
    Signed-off-by: David Goulet <dgoulet@xxxxxxxxx>
---
 src/common/socks5.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/socks5.c b/src/common/socks5.c
index 9610f51..e725c56 100644
--- a/src/common/socks5.c
+++ b/src/common/socks5.c
@@ -465,7 +465,7 @@ int socks5_recv_connect_reply(struct connection *conn)
 	size_t recv_len;
 
 	assert(conn);
-	assert(conn >= 0);
+	assert(conn->fd >= 0);
 
 	/* Beginning of the payload we are receiving. */
 	recv_len = sizeof(msg);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits