]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P NFC: Fix use of freed memory
authorJouni Malinen <j@w1.fi>
Sat, 31 May 2014 20:10:33 +0000 (23:10 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 31 May 2014 20:10:33 +0000 (23:10 +0300)
commit8a387a269ddfcc79d455693c1822b287ef6fcb05
tree69a0d9dfdec745db6e1872b912888258ac6197af
parentdf48efc5aba6e4f360cd41cac67aa1859607ea2c
P2P NFC: Fix use of freed memory

The dev_found() callback from NFC connection handover message processing
ended up using the p2p_dev_addr pointer that points to the parsed
message. However, that parsed data was freed just before the call. Fix
this by reordering the calls.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/p2p/p2p.c