Date: Tue, 1 Jun 2010 14:17:08 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r208697 - head/sys/net80211 Message-ID: <201006011417.o51EH8wo054272@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006011417.o51EH8wo054272>