Fix length check when parsing PPPoE discovery phase packets.
authorbrad <brad@openbsd.org>
Wed, 27 Aug 2008 08:41:46 +0000 (08:41 +0000)
committerbrad <brad@openbsd.org>
Wed, 27 Aug 2008 08:41:46 +0000 (08:41 +0000)
commit2aa349e18c7fb28c340be41c15fe73d885dba5ce
tree1d5f1771cc82da76c86200b0dd669e1cda575470
parent04585db0fcf798e27709487f2810fc2ff78f1520
Fix length check when parsing PPPoE discovery phase packets.

Malicious PPPoE discovery packets could cause the kernel to
crash.

From canacar@ and inspired by the original fix from NetBSD.
ok canacar@
sys/net/if_pppoe.c