mesh: Fix segfault on error path
authorMasashi Honma <masashi.honma@gmail.com>
Wed, 26 Aug 2015 08:32:38 +0000 (17:32 +0900)
committerJouni Malinen <j@w1.fi>
Sat, 5 Sep 2015 18:31:25 +0000 (21:31 +0300)
commita5d2bf247300fe35ff1d6e971116d9c8e6b8a87f
treed1804ea43921a4ec820d7047627d7ff710ae00b1
parentf029c44cf29c97d408eb15bad28137505862d95b
mesh: Fix segfault on error path

When wpa_init() in __mesh_rsn_auth_init() failed, empty rsn->auth caused
segmentation fault due to NULL pointer dereference when wpa_deinit() was
called. Fix this by checking the pointer before executing deinit steps.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
wpa_supplicant/mesh_rsn.c