diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 2f33dc04e5..fad93395a7 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -2657,7 +2657,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;