]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
flowtable: Add missing break
authorPhil Sutter <phil@nwl.cc>
Thu, 20 Dec 2018 20:03:28 +0000 (21:03 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 21 Dec 2018 11:04:44 +0000 (12:04 +0100)
In nftnl_flowtable_set_data(), when setting flowtable size, the switch()
case fell through and the same value was copied into ft_flags field.
This can't be right.

Fixes: 41fe3d38ba34b ("flowtable: support for flags")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/flowtable.c

index c939306b56c4de861adbbea5c15026f79b995171..caf3c13841f583bb52b93c3e60203fdb0e55c944 100644 (file)
@@ -163,6 +163,7 @@ int nftnl_flowtable_set_data(struct nftnl_flowtable *c, uint16_t attr,
                break;
        case NFTNL_FLOWTABLE_SIZE:
                memcpy(&c->size, data, sizeof(c->size));
+               break;
        case NFTNL_FLOWTABLE_FLAGS:
                memcpy(&c->ft_flags, data, sizeof(c->ft_flags));
                break;