aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2025-06-02 00:11:40 +0000
committerGordon Tetlow <gordon@FreeBSD.org>2025-08-07 23:21:08 +0000
commita3bd81ddfe2912afb824e322fddc576cde72e376 (patch)
tree334fc56a8a5977605996aa2f169c7831e0efa91c
parentce4fe4c4bfcd5908b5f4121623f6640e15261bc8 (diff)
-rw-r--r--sys/net80211/ieee80211_crypto_tkip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_crypto_tkip.c b/sys/net80211/ieee80211_crypto_tkip.c
index ca474b504fff..0506e2df6545 100644
--- a/sys/net80211/ieee80211_crypto_tkip.c
+++ b/sys/net80211/ieee80211_crypto_tkip.c
@@ -370,7 +370,7 @@ finish:
/*
* Strip the ICV if hardware has not done so already.
*/
- if (rxs != NULL && (rxs->c_pktflags & IEEE80211_RX_F_ICV_STRIP) == 0)
+ if ((rxs == NULL) || (rxs->c_pktflags & IEEE80211_RX_F_ICV_STRIP) == 0)
m_adj(m, -tkip.ic_trailer);
return 1;