2
0
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:
Justin Pettit
2011-02-22 17:50:19 -08:00
parent 84ba64b964
commit f2cc621bac

View File

@@ -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;