]> 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)
committerVictor Julien <victor@inliniac.net>
Wed, 13 Mar 2024 05:22:53 +0000 (06:22 +0100)
commit14d969176d57c9ce057a44ef078bf5425ada5fdc
tree59507892886827aad397f77342d0aa0591d53a4c
parent9437c6cfcb7c238d233fb26f0269064e7c66004f
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

(cherry picked from commit d2db8bfdca7c2483f51c35a726d73f1912638199)
src/decode-pppoe.c