summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/netinet6/esp_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/esp_input.c b/sys/netinet6/esp_input.c
index 4351ac5..1ad8dcd 100644
--- a/sys/netinet6/esp_input.c
+++ b/sys/netinet6/esp_input.c
@@ -827,10 +827,10 @@ noreplaycheck:
m_freem(m);
} else {
m_copydata(m, 0, maxlen, mtod(n, caddr_t));
- m_adj(m, maxlen);
n->m_len = maxlen;
n->m_pkthdr.len = m->m_pkthdr.len;
n->m_next = m;
+ m_adj(m, maxlen);
m->m_flags &= ~M_PKTHDR;
}
m = n;
OpenPOWER on IntegriCloud