[PATCH] driver_macsec_linux.c: fix NULL pointer dereference

Jouni Malinen j at w1.fi
Sun Mar 26 15:04:59 PDT 2017


On Fri, Mar 24, 2017 at 10:25:24AM +0100, Davide Caratti wrote:
> in case wpa_supplicant is using driver_macsec_linux, but macsec module
> is not (yet) loaded in the kernel, nl_socket_alloc() fails and drv->sk
> is NULL. In this case, don't call libnl functions rntl_link_add() or
> rtnl_link_change() using such NULL pointer, to prevent program from
> getting segmentation faults like:

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list