]> granicus.if.org Git - libnl/commit
route/link: fix dangling pointer after rtnl_link_get_ifalias(link, NULL)
authorThomas Haller <thaller@redhat.com>
Tue, 10 Jun 2014 15:50:09 +0000 (17:50 +0200)
committerThomas Haller <thaller@redhat.com>
Tue, 10 Jun 2014 19:45:52 +0000 (21:45 +0200)
commitd7a9e74f82d136d1e3fa4e174e8b7ba9595ec9a9
treeea72d0c47b2a3d972592e796f8b31a05bb847f96
parentdae0a2316ed9f5cc16670f8a49f7737d73b31c3c
route/link: fix dangling pointer after rtnl_link_get_ifalias(link, NULL)

Fixed bug that left a dangling pointer after clearing the ifalias
property. This happened when calling 'rtnl_link_get_ifalias(link, NULL)'
on a link that has already an ifalias set.

This can cause a crash and/or a double-free.

Error found by coverity.

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