P2P: Use cleaner way of generating pointer to a field (CID 68095)
authorJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 17:13:50 +0000 (20:13 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 21:27:15 +0000 (00:27 +0300)
commit35c03184dfa060b5b4043a82f16357334beb1066
tree2bc62e317f7e5a4216c4a6d5662c6f26fc26d1f5
parente987c70c85b859fbd9fab6a194579a28f235e3af
P2P: Use cleaner way of generating pointer to a field (CID 68095)

The Action code field is in a fixed location, so the IEEE80211_HDRLEN
can be used here to clean up bounds checking to avoid false reports from
static analyzer.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/ap.c