]> git.ipfire.org Git - thirdparty/suricata.git/commit
decode/pppoe: pointer cast consistency
authorPhilippe Antoine <pantoine@oisf.net>
Mon, 19 Feb 2024 09:53:02 +0000 (10:53 +0100)
committerPhilippe Antoine <pantoine@oisf.net>
Mon, 11 Mar 2024 14:56:31 +0000 (15:56 +0100)
commitd2db8bfdca7c2483f51c35a726d73f1912638199
tree6eb6ab1a7b0584fed03b9367c8b5fcff50296cc6
parent44388f1b69ea6ed813dc1126e327b60817d5d50b
decode/pppoe: pointer cast consistency

Ticket: 6787

To do pointer arithmetic, we need to use uint8_t* pointer :
Pointer arithmetic in C is automatically scaled according
to the size of the data type.

Also simplifies the loop condition
src/decode-pppoe.c