]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
evaluate: Mark fall through case in str2hooknum()
authorPhil Sutter <phil@nwl.cc>
Fri, 11 Jun 2021 14:19:18 +0000 (16:19 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 14 Jun 2021 11:31:07 +0000 (13:31 +0200)
It is certainly intentional, so just mark it as such.

Fixes: b4775dec9f80b ("src: ingress inet support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/evaluate.c

index 5311963a20c56e9e296928fcac65d7b646397734..5863fc8213ab273f104f7ad96387b8206682361d 100644 (file)
@@ -4146,6 +4146,7 @@ static uint32_t str2hooknum(uint32_t family, const char *hook)
        case NFPROTO_INET:
                if (!strcmp(hook, "ingress"))
                        return NF_INET_INGRESS;
+               /* fall through */
        case NFPROTO_IPV4:
        case NFPROTO_BRIDGE:
        case NFPROTO_IPV6: