link: fix offload features initialization (#4639)

This commit is contained in:
Maks Naumov
2016-11-14 12:33:43 +02:00
committed by Lennart Poettering
parent 1f8c78a1ba
commit 45d34fa7fb

View File

@@ -169,7 +169,7 @@ static int load_link(link_config_ctx *ctx, const char *filename) {
link->duplex = _DUP_INVALID;
link->autonegotiation = -1;
memset(&link->features, -1, _NET_DEV_FEAT_MAX);
memset(&link->features, -1, sizeof(link->features));
r = config_parse(NULL, filename, file,
"Match\0Link\0Ethernet\0",