summaryrefslogtreecommitdiffstats
path: root/src/udev/net
diff options
context:
space:
mode:
authorMaks Naumov <maksqwe1@ukr.net>2016-11-14 11:33:43 +0100
committerLennart Poettering <lennart@poettering.net>2016-11-14 11:33:43 +0100
commit45d34fa7fb9f587f09e8cca882966050b4cbb5be (patch)
treeed9f2eb3d3e78a0cfa10d891aee4a9bf774e4f1a /src/udev/net
parentMerge pull request #4659 from keszybz/ctrl-alt-del-twice (diff)
downloadsystemd-45d34fa7fb9f587f09e8cca882966050b4cbb5be.tar.xz
systemd-45d34fa7fb9f587f09e8cca882966050b4cbb5be.zip
link: fix offload features initialization (#4639)
Diffstat (limited to 'src/udev/net')
-rw-r--r--src/udev/net/link-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
index 4578d0d9b2..1dca375279 100644
--- a/src/udev/net/link-config.c
+++ b/src/udev/net/link-config.c
@@ -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",