Re: [PATCH 1/1] payload: don't update protocol context if we can't find a description

2016-06-06 Thread Pablo Neira Ayuso
On Mon, Jun 06, 2016 at 10:01:18PM +0200, Florian Westphal wrote: > Since commit > 20b1131c07acd2fc ("payload: fix stacked headers protocol context tracking") > we deref null pointer if we can't find a description for the desired > protocol, so "ip protocol 254" crashes while testing protocols 6 or

[PATCH 1/1] payload: don't update protocol context if we can't find a description

2016-06-06 Thread Florian Westphal
Since commit 20b1131c07acd2fc ("payload: fix stacked headers protocol context tracking") we deref null pointer if we can't find a description for the desired protocol, so "ip protocol 254" crashes while testing protocols 6 or 17 (tcp, udp) works. Also add a test case for this. Closes: https://bug