1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 10:51:20 +03:00

network/wireguard: fixes sending wireguard peer settings

This fixes a bug introduced by e1f717d4a0.

Fixes #11579.
This commit is contained in:
Yu Watanabe 2019-01-28 09:42:35 +01:00
parent d279b185c0
commit 2301c54fa9

View File

@ -109,7 +109,7 @@ static int wireguard_set_peer_one(NetDev *netdev, sd_netlink_message *message, c
if (r < 0)
goto cancel;
if (!start) {
if (!*mask_start) {
r = sd_netlink_message_append_data(message, WGPEER_A_PRESHARED_KEY, &peer->preshared_key, WG_KEY_LEN);
if (r < 0)
goto cancel;