hostap/src
Stepanov, Max 8c43ef8449 P2PS: Fix attribute addition in p2p_buf_add_service_instance()
Fix a condition when Advertised Service Info Attribute is added to
a probe response in p2p_buf_add_service_instance(). The issue is
that a 'found' value is increased even if 'test' and 'adv->hash' hashes
are different. As result 'found' may have a non-zero value when an
attribute data length is 0. In this cause an empty attribute is about to
be added. Fixing it by eliminating 'found' and checking 'total_len'
containing a real number of bytes added to Advertised Service Info
Attribute.

This fixes an issue from commit 50a9efe713
('P2PS: Fix Probe Response frame building in error cases').

Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>
2015-06-27 23:54:10 +03:00
..
ap SAE: Verify that own/peer commit-scalar and COMMIT-ELEMENT are different 2015-06-23 23:10:36 +03:00
common AP: Increase maximum value accepted for cwmin/cwmax 2015-06-27 23:34:49 +03:00
crypto OpenSSL: Handle EC_POINT_is_on_curve() error case 2015-06-26 22:41:51 +03:00
drivers Android: Fix nl80211 build if BOARD_*_PRIVATE_LIB is unspecified 2015-06-26 22:46:49 +03:00
eap_common EAP-SAKE: Make attribute parser more readable 2015-05-03 16:32:50 +03:00
eap_peer EAP-FAST peer: Stop immediately on key derivation failure 2015-06-19 01:23:24 +03:00
eap_server ERP server: Make erp_send_finish_reauth() easier for static analyzers 2015-06-23 18:27:06 +03:00
eapol_auth Declare all read only data structures as const 2015-04-25 17:33:06 +03:00
eapol_supp Declare all read only data structures as const 2015-04-25 17:33:06 +03:00
l2_packet tests: Add eapol-fuzzer 2015-04-22 11:44:19 +03:00
p2p P2PS: Fix attribute addition in p2p_buf_add_service_instance() 2015-06-27 23:54:10 +03:00
pae MACsec: Update protect frames and replay on reauthentication 2014-12-09 16:56:10 +02:00
radius radius: Fix NULL dereference issue on allocation failure 2015-06-26 22:44:41 +03:00
rsn_supp Simplify VHT Capabilities element parsing 2015-04-22 22:05:11 +03:00
tls libtommath: Fix mp_init_multi() stdarg use on error path 2015-06-23 20:39:08 +03:00
utils Clear allocated debug message buffers explicitly 2015-06-17 16:30:34 +03:00
wps WPS: Add more debug prints to httpread 2015-05-03 18:26:50 +03:00
lib.rules Add QUIET=1 option for make 2014-12-29 15:49:05 +02:00
Makefile MACsec: Add PAE implementation 2014-05-09 20:42:44 +03:00