diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/socket.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/socket.c b/src/socket.c index b06f2a1..a354616 100644 --- a/src/socket.c +++ b/src/socket.c @@ -845,9 +845,7 @@ static bool sotranslate_out6(Slirp *s, struct socket *so, struct sockaddr_in6 *s { if (in6_equal_net(&so->so_faddr6, &s->vprefix_addr6, s->vprefix_len)) { if (in6_equal(&so->so_faddr6, &s->vnameserver_addr6)) { - uint32_t scope_id; - if (get_dns6_addr(&sin->sin6_addr, &scope_id) >= 0) { - sin->sin6_scope_id = scope_id; + if (get_dns6_addr(&sin->sin6_addr, &sin->sin6_scope_id) >= 0) { return true; } } |