P2P: Use cleaner way of generating pointer to a field (CID 68096)
authorJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 17:18:15 +0000 (20:18 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 21:27:15 +0000 (00:27 +0300)
commitfb5d41717884a7c4db3e6a3e807351309c3b52b9
tree1c226bb0fc6fe9294fd8bee739071cd2ec6d329a
parent35c03184dfa060b5b4043a82f16357334beb1066
P2P: Use cleaner way of generating pointer to a field (CID 68096)

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