]> granicus.if.org Git - libnl/commit
route: make rtnl_tc_clone() more robust against NLE_NOMEM
authorThomas Haller <thaller@redhat.com>
Mon, 24 Nov 2014 16:19:54 +0000 (17:19 +0100)
committerThomas Haller <thaller@redhat.com>
Mon, 24 Nov 2014 17:21:59 +0000 (18:21 +0100)
commit703989eb12185471d6e494105f91470ea74d822d
treeed7e0ec77eb1247238a3667a2512f9d933f1312c
parent24ad51518f5678d83423e7f446751d8a3c1961c2
route: make rtnl_tc_clone() more robust against NLE_NOMEM

When oo_clone() fails, the new object is freed. Make sure 'dst'
does not own parts of 'src'.

Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
lib/route/tc.c