diff options
author | Thomas Haller <thaller@redhat.com> | 2019-02-18 10:12:22 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-02-18 15:10:07 +0100 |
commit | fc9d6610182bf205587bf8c6b87c4333bc0c6e43 (patch) | |
tree | 9ba63f143d82bd5f0fe2f59a4f90f0d748c4c846 | |
parent | 074103f92d3612055e2a3bc0ba2a664ae856dc74 (diff) | |
download | NetworkManager-fc9d6610182bf205587bf8c6b87c4333bc0c6e43.tar.gz |
platform/wireguard: fix parsing WGPEER_A_PERSISTENT_KEEPALIVE_INTERVAL from netlink
Fixes: 0827d4c2e402b8c82d58e053e922d9d22679b960
-rw-r--r-- | src/platform/nm-linux-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 8777867841..09f75a80cf 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -2019,7 +2019,7 @@ _wireguard_update_from_peers_nla (CList *peers, tb[WGPEER_A_ENDPOINT] ? nla_len (tb[WGPEER_A_ENDPOINT]) : 0); if (tb[WGPEER_A_PERSISTENT_KEEPALIVE_INTERVAL]) - peer_c->data.persistent_keepalive_interval = nla_get_u64 (tb[WGPEER_A_PERSISTENT_KEEPALIVE_INTERVAL]); + peer_c->data.persistent_keepalive_interval = nla_get_u16 (tb[WGPEER_A_PERSISTENT_KEEPALIVE_INTERVAL]); if (tb[WGPEER_A_LAST_HANDSHAKE_TIME]) nla_memcpy (&peer_c->data.last_handshake_time, tb[WGPEER_A_LAST_HANDSHAKE_TIME], sizeof (peer_c->data.last_handshake_time)); if (tb[WGPEER_A_RX_BYTES]) |