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

[tor-commits] [obfsproxy/master] Fix target of sizeof in pending_socks_cb().



commit c24f24b5647e9816f2ce76e265edd6091dc7abe3
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Mon Jan 16 15:43:24 2012 -0500

    Fix target of sizeof in pending_socks_cb().
---
 src/network.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/network.c b/src/network.c
index bdf64c3..99b40b5 100644
--- a/src/network.c
+++ b/src/network.c
@@ -941,7 +941,7 @@ pending_socks_cb(struct bufferevent *bev, short what, void *arg)
   if (what & BEV_EVENT_CONNECTED) {
     struct sockaddr_storage ss;
     struct sockaddr *sa = (struct sockaddr*)&ss;
-    socklen_t slen = sizeof(&ss);
+    socklen_t slen = sizeof(ss);
 
     obfs_assert(!circ->is_flushing);
 

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