bsd: Fix NULL pointer dereference on error path
authorJouni Malinen <j@w1.fi>
Tue, 7 Jan 2014 13:58:01 +0000 (15:58 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 7 Jan 2014 13:58:01 +0000 (15:58 +0200)
commitbfdc2a3172567dc7a77920557cbdb64d55d471bc
treeae0bb89745d70e9e08b1b1191a7d4f64d1d11fc2
parent38bbd06ecff13b473e854f34719a1a36632fb5f4
bsd: Fix NULL pointer dereference on error path

The error path in bsd_init() on struct bsd_driver_data allocation was
jumping to location where drv is dereferenced. That will crash and it is
easier to just return from the function since no cleanup steps are
needed in this case.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/drivers/driver_bsd.c