link: allocate correct number of bytes in ethtool_set_features()
authorThomas Haller <thaller@redhat.com>
Tue, 7 Aug 2018 14:01:18 +0000 (16:01 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 27 Aug 2018 12:14:30 +0000 (14:14 +0200)
commit3301f9eb97be335bf4ce05fac44bafd1c45cb10c
treef8ce235290e096b4786ba1aa68df7be405835374
parent274f0dbeb540984668710ec6b4e8194784705932
link: allocate correct number of bytes in ethtool_set_features()

sfeatures is a "struct ethtool_sfeatures". Use sizeof() on the correct
data type.

Since "struct ethtool_gstrings" is larger than "struct ethtool_sfeatures",
this had no serious consequences.

Fixes: 50725d10e3417fd357abe1df2f177b8458027ac7
src/udev/net/ethtool-util.c