]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Copy sin6_flowinfo and sin6_scope_id too
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 29 May 2026 14:17:36 +0000 (16:17 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 29 May 2026 13:36:47 +0000 (15:36 +0200)
In in46un_to_addr(), when copying a struct sockaddr_in6, copy the
sin6_flowinfo and sin6_scope_id, as they are part of the structure too.
They are unlikely to be of any use for us, but this is more correct
anyway.

include/haproxy/quic_sock.h

index 8ffe0bafb6b5aa046c0047f2ea18554f9fae3975..7940e240aa488a63383d3153aee3360abd0b1875 100644 (file)
@@ -135,6 +135,8 @@ static inline void in46un_to_addr(const union sockaddr_in46 *src,
                in6->sin6_family = AF_INET6;
                in6->sin6_addr = src->in6.sin6_addr;
                in6->sin6_port = src->in6.sin6_port;
+               in6->sin6_flowinfo = src->in6.sin6_flowinfo;
+               in6->sin6_scope_id = src->in6.sin6_scope_id;
                break;
 
        default: