[tor-commits] [obfsproxy/master] Fix target of sizeof in pending_socks_cb().
nickm at torproject.org
nickm at torproject.org
Mon Jan 16 20:41:23 UTC 2012
commit c24f24b5647e9816f2ce76e265edd6091dc7abe3
Author: Nick Mathewson <nickm at torproject.org>
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);
More information about the tor-commits
mailing list