Silence compiler warnings about out of array bounds indexes
authorJouni Malinen <j@w1.fi>
Thu, 5 Jun 2008 14:50:53 +0000 (17:50 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 5 Jun 2008 14:50:53 +0000 (17:50 +0300)
commit4fba48a5a7d367e86cdd29b6f004dcdb63e6b279
tree0f4f174badfcf33f79df23c62f7c9220cf104376
parent1d3c75b3b6663ed9f3a9a8dea8d47056cce2680f
Silence compiler warnings about out of array bounds indexes

struct wpa_ie_hdr had separate fields for 24-bit OUI and 8-bit oui_type
for WPA/RSN selectors. {WPA,RSN}_SELECTOR_{GET,PUT} access these four
octets through oui and the "out-of-bounds" access for the fourth octet is
actually reading/writing oui_type. This works fine, but some tools complain
about the array bounds "failure". Since oui_type is never accessed
separately, the simplest fix is to just combine these into a single 4-octet
field.
src/common/wpa_common.h