1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-26 03:51:35 +01:00

Use proper bssid/client hw when calling handshake captured callback

This commit is contained in:
Matias Fontanini
2016-03-05 10:56:03 -08:00
parent e15ef0d837
commit b7e20f550e

View File

@@ -553,8 +553,10 @@ void WPA2Decrypter::try_add_keys(const Dot11Data& dot11, const RSNHandshake& hs)
keys_[addr_p] = session;
#ifdef TINS_HAVE_WPA2_CALLBACKS
if (handshake_captured_callback_) {
handshake_captured_callback_(it->second.ssid(), addr_p.first,
addr_p.second);
address_type bssid = dot11.bssid_addr();
address_type client = (bssid == addr_p.first) ? addr_p.second
: addr_p.first;
handshake_captured_callback_(it->second.ssid(), bssid, client);
}
#endif // TINS_HAVE_WPA2_CALLBACKS
}