From 85f80e5cf2d5bbad6e5a7602d10acae90920e28e Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 8 Feb 2024 00:05:46 +0000 Subject: [PATCH] correct size in mac address comparison found by "'(selbs->ni_macaddr)' too small (6 vs 32)" smatch error ok stsp@ jca@ phessler@ --- sys/net80211/ieee80211_proto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index 7f8175d157a..3d8d649c8f0 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_proto.c,v 1.108 2022/03/14 15:07:24 stsp Exp $ */ +/* $OpenBSD: ieee80211_proto.c,v 1.109 2024/02/08 00:05:46 jsg Exp $ */ /* $NetBSD: ieee80211_proto.c,v 1.8 2004/04/30 23:58:20 dyoung Exp $ */ /*- @@ -861,7 +861,7 @@ ieee80211_try_another_bss(struct ieee80211com *ic) /* Should not happen but seriously, don't try the same AP again. */ if (memcmp(selbs->ni_macaddr, ic->ic_bss->ni_macaddr, - IEEE80211_NWID_LEN) == 0) + IEEE80211_ADDR_LEN) == 0) return; if (ifp->if_flags & IFF_DEBUG) -- 2.20.1