]> git.ipfire.org Git - thirdparty/hostap.git/commit
Do not double free cfg struct if netlink_init() fails
authorPontus Fuchs <pontus.fuchs@gmail.com>
Sat, 24 Nov 2012 14:47:20 +0000 (16:47 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 24 Nov 2012 14:47:20 +0000 (16:47 +0200)
commitfb660a9431f881ea6dbba2967094605ad64398ee
tree3e37531856f3c176e1c33a62d24f96d64152adc0
parente99b4f3a14755473d6d0e2413de6d82e785a6a30
Do not double free cfg struct if netlink_init() fails

If netlink_init() fails on socket create or bind the cfg struct
provided as parameter is freed by netlink_init(). Callers of
netlink_init() also free this struct on their error paths leading
to double free.

Signed-hostap: Pontus Fuchs <pontus.fuchs@gmail.com>
src/drivers/netlink.c