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')
(cherry picked from commit a67c312d5d)
This commit is contained in:
Thomas Haller 2021-01-27 11:29:17 +01:00
parent 66fc6dd692
commit adabef8e86
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -2786,7 +2786,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;