Drivers may pass runt packets to filter. This is okay.
Reviewed by: gallatin
This commit is contained in:
parent
40f6431286
commit
3d08ed450e
@ -1448,7 +1448,10 @@ ipfw_chk(struct ip_fw_args *args)
|
||||
do { \
|
||||
int x = (_len) + T + EHLEN; \
|
||||
if (mem) { \
|
||||
MPASS(pktlen >= x); \
|
||||
if (__predict_false(pktlen < x)) { \
|
||||
unlock; \
|
||||
goto pullup_failed; \
|
||||
} \
|
||||
p = (char *)args->mem + (_len) + EHLEN; \
|
||||
} else { \
|
||||
if (__predict_false((m)->m_len < x)) { \
|
||||
|
Loading…
Reference in New Issue
Block a user