wpa_gui: Avoid using freed item in enter_pin()
authorJouni Malinen <j@w1.fi>
Thu, 19 Nov 2009 19:12:06 +0000 (21:12 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 19 Nov 2009 19:12:06 +0000 (21:12 +0200)
commitda87d6f8b560b3fcf75c622a84bafb60daa1e90c
tree20d222015e98f7632a6892785cfbfd8464689755
parent1949f5348139cb5ab124ffe8a7f3008f5a57fce2
wpa_gui: Avoid using freed item in enter_pin()

The Enrollee entry may be deleted while the PIN query dialog is open.
To avoid crashing on using freed entry, copy the needed data into
local variables before and use the local data after the PIN dialog
has been closed.
wpa_supplicant/wpa_gui-qt4/peers.cpp