]> git.ipfire.org Git - thirdparty/suricata.git/commit
decode: Change return type of IPv4 and TCP options decode
authorJeff Lucovsky <jeff@lucovsky.org>
Tue, 26 Mar 2019 21:30:09 +0000 (14:30 -0700)
committerVictor Julien <victor@inliniac.net>
Mon, 8 Apr 2019 10:13:02 +0000 (12:13 +0200)
commit8e464530ef9c788bb5482ff8806aadb4001c4d43
tree75ac93eff20f81fc3efa808dd0c883d23a7f7b40
parent03b0e4272b2a278c2021a44e12125f3a5569b2b5
decode: Change return type of IPv4 and TCP options decode

The return value from the options decoder in TCP and IPv4 is ignored.
This commit changes the return type of the function to `void` and
modifies existing return points to return without a value.

When an error occurs, the packet state is being set to indicate whether
it's valid or not and the existing return value is never used.
src/decode-ipv4.c
src/decode-tcp.c