svn commit: r208697 - head/sys/net80211

Rui Paulo rpaulo at FreeBSD.org
Tue Jun 1 14:17:08 UTC 2010


Author: rpaulo
Date: Tue Jun  1 14:17:08 2010
New Revision: 208697
URL: http://svn.freebsd.org/changeset/base/208697

Log:
  Compare the address of the array, not the array.
  
  Found with:	Coverity Prevent(tm)
  CID:		3690
  MFC after:	3 days

Modified:
  head/sys/net80211/ieee80211_scan_sta.c

Modified: head/sys/net80211/ieee80211_scan_sta.c
==============================================================================
--- head/sys/net80211/ieee80211_scan_sta.c	Tue Jun  1 14:13:59 2010	(r208696)
+++ head/sys/net80211/ieee80211_scan_sta.c	Tue Jun  1 14:17:08 2010	(r208697)
@@ -1013,7 +1013,7 @@ match_bss(struct ieee80211vap *vap,
 		 */
 		if (se->se_capinfo & (IEEE80211_CAPINFO_IBSS|IEEE80211_CAPINFO_ESS))
 			fail |= MATCH_CAPINFO;
-		else if (se->se_meshid == NULL)
+		else if (&se->se_meshid == NULL)
 			fail |= MATCH_MESH_NOID;
 		else if (ms->ms_idlen != 0 &&
 		    match_id(se->se_meshid, ms->ms_id, ms->ms_idlen))


More information about the svn-src-all mailing list