-/* $OpenBSD: ieee80211_input.c,v 1.93 2008/08/12 19:42:37 damien Exp $ */
+/* $OpenBSD: ieee80211_input.c,v 1.94 2008/08/12 19:45:22 damien Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
while (frm + 2 <= efrm) {
if (frm + 2 + frm[1] > efrm) {
ic->ic_stats.is_rx_elem_toosmall++;
- return;
+ break;
}
switch (frm[0]) {
case IEEE80211_ELEMID_SSID:
while (frm + 2 <= efrm) {
if (frm + 2 + frm[1] > efrm) {
ic->ic_stats.is_rx_elem_toosmall++;
- return;
+ break;
}
switch (frm[0]) {
case IEEE80211_ELEMID_SSID:
while (frm + 2 <= efrm) {
if (frm + 2 + frm[1] > efrm) {
ic->ic_stats.is_rx_elem_toosmall++;
- return;
+ break;
}
switch (frm[0]) {
case IEEE80211_ELEMID_SSID:
while (frm + 2 <= efrm) {
if (frm + 2 + frm[1] > efrm) {
ic->ic_stats.is_rx_elem_toosmall++;
- return;
+ break;
}
switch (frm[0]) {
case IEEE80211_ELEMID_RATES: