diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-30 14:49:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-30 14:49:49 -0400 |
commit | da7c60dcf310fb9914bfd1b84a34b440ab04900a (patch) | |
tree | 1a30bd8ef9e3473a45a5c72c538afceae9233412 /src/or/control.c | |
parent | 6802499413f8efd98ad4d578e5ef937cb55c1edc (diff) | |
parent | cfeafe5e77c9dd5587b1ec553eb1065f0bf841fd (diff) | |
download | tor-da7c60dcf310fb9914bfd1b84a34b440ab04900a.tar.gz tor-da7c60dcf310fb9914bfd1b84a34b440ab04900a.zip |
Merge remote-tracking branch 'public/bug3270' into maint-0.2.2
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c index f75ac67758..c7e22f81e2 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1512,7 +1512,7 @@ getinfo_helper_listeners(control_connection_t *control_conn, struct sockaddr_storage ss; socklen_t ss_len = sizeof(ss); - if (conn->type != type || conn->marked_for_close || conn->s < 0) + if (conn->type != type || conn->marked_for_close || !SOCKET_OK(conn->s)) continue; if (getsockname(conn->s, (struct sockaddr *)&ss, &ss_len) < 0) { |