fragattacks/src
Joel Cunningham 7824bf77d6 nl80211: Fix get_inact_sec() returning -1 on failure
This commit fixes the nl80211 driver call get_inact_sec() to return -1
when STA inactivity time retrieval fails in i802_read_sta_data().

This was intended to be handled by initalizing the inactive_msec member
to -1 but i802_read_sta_data() assumes the data parameter is
uninitialized and memsets the entire structure, neutralizing the attempt
to distinguish between no value (-1) and a time value of 0.

This is fixed by now requiring i802_read_sta_data() callers to
initialize the data structure first (allowing get_inact_sec() to use
-1). This is a safe change because it does not change any driver API
behavior and only affects one other static function in driver_nl80211.c

Signed-off-by: Joel Cunningham <joel.cunningham@me.com>
2016-11-19 17:39:23 +02:00
..
ap GAS: Add Capability List ANQP-element support for Info ID 270, 280..299 2016-11-17 16:00:25 +02:00
common Reserve QCA vendor specific nl80211 command 144 2016-11-17 16:00:59 +02:00
crypto Extend AES-SIV implementation to support different key lengths 2016-10-10 19:40:59 +03:00
drivers nl80211: Fix get_inact_sec() returning -1 on failure 2016-11-19 17:39:23 +02:00
eap_common TLS: Split tls_connection_prf() into two functions 2016-05-23 20:40:12 +03:00
eap_peer ERP: Make eap_peer_finish() callable 2016-10-22 18:26:00 +03:00
eap_server ERP: Update client identity based on EAP-Initiate/Re-auth 2016-10-22 23:13:17 +03:00
eapol_auth RADIUS: Share a single function for generating session IDs 2016-02-06 17:19:35 +02:00
eapol_supp ERP: Make eap_peer_finish() callable 2016-10-22 18:26:00 +03:00
fst FST: Fix search for peer's "other" connection 2016-09-08 11:17:45 +03:00
l2_packet l2_packet: Extend bridge workaround RX processing to cover two frames 2016-01-07 13:30:59 +02:00
p2p P2P: Clear old P2PS provision data 2016-10-29 00:55:49 +03:00
pae mka: Fix getting capabilities from the driver 2016-11-19 17:29:54 +02:00
radius radius: Sanity check for NULL pointer segfault 2016-08-19 12:16:20 +03:00
rsn_supp TDLS: Fix checks on prohibit bits 2016-10-29 00:24:12 +03:00
tls Fix typo in DigestAlgorithn 2016-10-29 11:14:09 +03:00
utils Removed redundant NULL check for b in wpabuf_concat() 2016-10-28 19:05:08 +03:00
wps Share a single str_starts() implementation 2016-08-06 12:38:21 +03:00
lib.rules Add QUIET=1 option for make 2014-12-29 15:49:05 +02:00
Makefile FST: Add the Fast Session Transfer (FST) module 2015-07-16 18:26:15 +03:00