From 298633759afe9ddf4f33ffe92cd628cfc986d237 Mon Sep 17 00:00:00 2001 From: Rui Paulo Date: Tue, 1 Jun 2010 14:17:08 +0000 Subject: [PATCH] Compare the address of the array, not the array. Found with: Coverity Prevent(tm) CID: 3690 MFC after: 3 days --- sys/net80211/ieee80211_scan_sta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net80211/ieee80211_scan_sta.c b/sys/net80211/ieee80211_scan_sta.c index a4808e29671..294a63e3b2d 100644 --- a/sys/net80211/ieee80211_scan_sta.c +++ b/sys/net80211/ieee80211_scan_sta.c @@ -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))