]> git.ipfire.org Git - thirdparty/bind9.git/commit
Initialize the sockaddr_in and sockaddr_in6 structures
authorOndřej Surý <ondrej@sury.org>
Tue, 5 Nov 2019 10:01:10 +0000 (11:01 +0100)
committerOndřej Surý <ondrej@sury.org>
Tue, 5 Nov 2019 22:07:07 +0000 (23:07 +0100)
commit178f2f8426e5d99267d741adf4d4edd3e2735b82
tree84ec0a462eb6957c3c21b289d40ab3f5bc9bae84
parent4e3d0cb7ac30dc76df4cba92b4dd6cd7d96f8758
Initialize the sockaddr_in and sockaddr_in6 structures

This fixes two scan-build false positives:

context.c:441:23: warning: The left operand of '!=' is a garbage value
                    || sin.sin_port != htons(lwres_udp_port))
                       ~~~~~~~~~~~~ ^
context.c:447:25: warning: The left operand of '!=' is a garbage value
                    || sin6.sin6_port != htons(lwres_udp_port))
                       ~~~~~~~~~~~~~~ ^
2 warnings generated.

The sin and sin6 structures are used as argument to recvfrom call and
they are properly filled by the call.
lib/lwres/context.c