wireguard: fix configuring larger number of allowed-ips on WireGuard link

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/640

Fixes: a5c894c35f ('platform: create wireguard netdev interface')
This commit is contained in:
Thomas Haller 2021-01-27 11:29:17 +01:00
parent 5217d0046e
commit a67c312d5d
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -2789,7 +2789,7 @@ toobig_allowedips:
if (nest_curr_allowed_ip)
nla_nest_cancel(msg, nest_curr_allowed_ip);
if (nest_allowed_ips)
nla_nest_cancel(msg, nest_allowed_ips);
_nla_nest_end(msg, nest_allowed_ips);
_nla_nest_end(msg, nest_curr_peer);
_nla_nest_end(msg, nest_peers);
goto send;