summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
484cb25)
src/wlan.c: In function ‘wlan_rx_wol_probe_ssid’:
src/wlan.c:830:30: error: variable ‘end’ set but not used
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
*/
data = (u8 *)((struct ieee80211_mgmt *)hdr)->u.probe_req.variable;
for (i = 0; i < (unsigned int)(probe_req.ssid_len + 1); i++) {
*/
data = (u8 *)((struct ieee80211_mgmt *)hdr)->u.probe_req.variable;
for (i = 0; i < (unsigned int)(probe_req.ssid_len + 1); i++) {
- if (scan[i] != data[i])
+ if (data > end || scan[i] != data[i])