PERFORCE change 133066 for review

Sam Leffler sam at FreeBSD.org
Fri Jan 11 12:53:53 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=133066

Change 133066 by sam at sam_ebb on 2008/01/11 20:53:40

	avoid potential null ptr deref
	Submitted by:	cbz

Affected files ...

.. //depot/projects/vap/sys/net80211/ieee80211_input.h#2 edit

Differences ...

==== //depot/projects/vap/sys/net80211/ieee80211_input.h#2 (text+ko) ====

@@ -34,8 +34,7 @@
 		    wh, NULL, "%s", "no " #__elem );			\
 		vap->iv_stats.is_rx_elem_missing++;			\
 		_action;						\
-	}								\
-	if ((__elem)[1] > (__maxlen)) {					\
+	} else if ((__elem)[1] > (__maxlen)) {				\
 		IEEE80211_DISCARD(vap, IEEE80211_MSG_ELEMID,		\
 		    wh, NULL, "bad " #__elem " len %d", (__elem)[1]);	\
 		vap->iv_stats.is_rx_elem_toobig++;			\


More information about the p4-projects mailing list