Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/net80211 Move the pkthdr only if mprev is NULL. C...
details: https://anonhg.NetBSD.org/src-all/rev/427eb518ea2f
branches: trunk
changeset: 375462:427eb518ea2f
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Thu May 14 16:22:14 2020 +1000
description:
Move the pkthdr only if mprev is NULL. Connecting to secured aps work.
diffstat:
sys/net80211/ieee80211_netbsd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 11a6bdbb0eb1 -r 427eb518ea2f sys/net80211/ieee80211_netbsd.c
--- a/sys/net80211/ieee80211_netbsd.c Thu May 14 12:21:22 2020 +1000
+++ b/sys/net80211/ieee80211_netbsd.c Thu May 14 16:22:14 2020 +1000
@@ -1440,7 +1440,7 @@ m_unshare(struct mbuf *m0, int how)
m_freem(m0);
return (NULL);
}
- if (m->m_flags & M_PKTHDR) {
+ if (mprev == NULL && m->m_flags & M_PKTHDR) {
FBSDKASSERT(mprev == NULL, ("%s: m0 %p, m %p has M_PKTHDR",
__func__, m0, m));
m_move_pkthdr(n, m);
Home |
Main Index |
Thread Index |
Old Index