diff options
author | Thomas Haller <thaller@redhat.com> | 2023-12-01 16:49:08 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-12-01 16:49:14 (GMT) |
commit | efd65feb9c3b694483127705daaa9465f63a5c8c (patch) | |
tree | 7851b370ffc65073b58d2f22f4a5c14345fc7624 | |
parent | 105a6be10a5f8a40123e1f85696499e31b10dbd6 (diff) | |
download | libnl-efd65feb9c3b694483127705daaa9465f63a5c8c.zip libnl-efd65feb9c3b694483127705daaa9465f63a5c8c.tar.gz libnl-efd65feb9c3b694483127705daaa9465f63a5c8c.tar.bz2 |
route: fix just introduced use-after-free in rtnl_act_parse()
Fixes: 105a6be10a5f ('route: use cleanup macro in rtnl_act_parse()')
-rw-r--r-- | lib/route/act.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/route/act.c b/lib/route/act.c index e4a8aff..2129bd0 100644 --- a/lib/route/act.c +++ b/lib/route/act.c @@ -496,6 +496,8 @@ int rtnl_act_parse(struct rtnl_act **head, struct nlattr *tb) err = rtnl_act_append(&tmp_head, act); if (err < 0) return err; + + _nl_steal_pointer(&act); } *head = _nl_steal_pointer(&tmp_head); |