mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-21 03:23:04 -05:00
Make a code path easier for static analyzers to understand
prev cannot be NULL here in the hostapd_eid_country_add() call since prev is set whenever start becomes non-NULL. That seems to be a bit too difficult for some static analyzers, so check the prev pointer explicitly to avoid false warnings. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
9a921f9a84
commit
bc32bb70d7
@ -220,7 +220,7 @@ static u8 * hostapd_eid_country(struct hostapd_data *hapd, u8 *eid,
|
|||||||
continue; /* can use same entry */
|
continue; /* can use same entry */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (start) {
|
if (start && prev) {
|
||||||
pos = hostapd_eid_country_add(pos, end, chan_spacing,
|
pos = hostapd_eid_country_add(pos, end, chan_spacing,
|
||||||
start, prev);
|
start, prev);
|
||||||
start = NULL;
|
start = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user