CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2018/05/02 15:28:01
Modified files:
sys/netinet : ip_ah.c ip_esp.c ip_ipcomp.c
Log message:
Do not assume that mbufs within a chain do not have M_PKTHDR set.
This could happen during fragment reassembly. Better check if we
are dealing with the first mbuf of the chain.
m_adj() changes the length of the mbuf, obviously. So when using
this length to calulate the amount of adjustment, do not calculate
it again after m_adj() with wrong input. Use a temporary variable
to save the value.
from Maxime Villard, NetBSD; OK markus@ claudio@