[PATCH 7/9] route/link: fix dangling pointer after rtnl_link_get_ifalias(link, NULL)

Thomas Graf tgraf at suug.ch
Tue Jun 10 10:56:06 PDT 2014


On 06/10/14 at 06:59pm, Thomas Haller wrote:
> 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.
> 
> Signed-off-by: Thomas Haller <thaller at redhat.com>

Acked-by: Thomas Graf <tgraf at suug.ch>



More information about the libnl mailing list