mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge remote-tracking branch 'public/bug3270' into maint-0.2.2
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user