diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/socket.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/socket.c b/src/socket.c index 3375e5b..6e65c42 100644 --- a/src/socket.c +++ b/src/socket.c @@ -995,11 +995,6 @@ static int32_t _sockaddr_in6_scope_id(struct sockaddr_in6* addr) res = addr_in->sin6_scope_id; break; } - - if ((addr_in->sin6_scope_id > addr->sin6_scope_id) && (res >= 0)) { - // use last valid scope id as we're past the requested scope id - break; - } res = addr_in->sin6_scope_id; continue; } @@ -1009,11 +1004,6 @@ static int32_t _sockaddr_in6_scope_id(struct sockaddr_in6* addr) continue; } - if ((addr_in->sin6_scope_id > addr->sin6_scope_id) && (res >= 0)) { - // use last valid scope id as we're past the requested scope id - break; - } - res = addr_in->sin6_scope_id; /* if scope id equals the requested one then assume it was valid */ |