mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +00:00
netdev-linux: Zero-out "sin" in netdev_linux_arp_lookup().
Coverity complains that we're copying the unitialized "sin_zero" member from "sin" into "r". I don't think this is an actual problem, but there's no harm in zeroing out the structure, either. Coverity #10916
This commit is contained in:
@@ -2045,6 +2045,7 @@ netdev_linux_arp_lookup(const struct netdev *netdev,
|
||||
int retval;
|
||||
|
||||
memset(&r, 0, sizeof r);
|
||||
memset(&sin, 0, sizeof sin);
|
||||
sin.sin_family = AF_INET;
|
||||
sin.sin_addr.s_addr = ip;
|
||||
sin.sin_port = 0;
|
||||
|
||||
Reference in New Issue
Block a user