aboutsummaryrefslogtreecommitdiff
path: root/website/static/security/patches/SA-22:07/wifi_meshid.patch
blob: 3b3d686404b63a1a3b3f84f826eac16d5ce6cead (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- sys/net80211/ieee80211_input.c.orig
+++ sys/net80211/ieee80211_input.c
@@ -742,6 +742,12 @@
 		IEEE80211_VERIFY_LENGTH(scan->csa[1], 3 * sizeof(uint8_t),
 		    scan->status |= IEEE80211_BPARSE_CSA_INVALID);
 	}
+#ifdef IEEE80211_SUPPORT_MESH
+	if (scan->meshid != NULL) {
+		IEEE80211_VERIFY_ELEMENT(scan->meshid, IEEE80211_MESHID_LEN,
+		    scan->status |= IEEE80211_BPARSE_RATES_INVALID);
+	}
+#endif
 	/*
 	 * Process HT ie's.  This is complicated by our
 	 * accepting both the standard ie's and the pre-draft