In ip_mport() (IP packet demux code), check the minimum length requirement
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 6 Jul 2004 19:26:39 +0000 (19:26 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 6 Jul 2004 19:26:39 +0000 (19:26 +0000)
commit64ce4025a29b3680c39f394f0a455f6789fb8d80
treeef27fb089036d27524b583142b7ad11107619591
parentfe3167fdac09880387aeba073d1622c3ec01ddd7
In ip_mport() (IP packet demux code), check the minimum length requirement
for an IP packet *before* the defrag case rather then after.  This avoids
a panic in ip_input.c where the length is already assumed to be reasonable.

Bug-report-by: Allan Fields <bsd@afields.ca>
In-consultation-with: Jeffrey Hsu <hsu@leaf.dragonflybsd.org>
sys/netinet/ip_demux.c