mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Avoid access to stale ip pointer and call UPDATE_POINTERS() after
PULLUP_LEN_LOCKED(). PULLUP_LEN_LOCKED() could update mbuf and thus we need to update related pointers that can be used in next opcodes. Reported by: Maxime Villard <max at m00nbsd net> MFC after: 1 week
This commit is contained in:
parent
aa7bdbc00c
commit
ca0ac0a6c1
1 changed files with 2 additions and 1 deletions
|
|
@ -1465,7 +1465,8 @@ do { \
|
|||
|
||||
#define PULLUP_LEN(_len, p, T) _PULLUP_LOCKED(_len, p, T, )
|
||||
#define PULLUP_LEN_LOCKED(_len, p, T) \
|
||||
_PULLUP_LOCKED(_len, p, T, IPFW_PF_RUNLOCK(chain))
|
||||
_PULLUP_LOCKED(_len, p, T, IPFW_PF_RUNLOCK(chain)); \
|
||||
UPDATE_POINTERS()
|
||||
/*
|
||||
* In case pointers got stale after pullups, update them.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue