summaryrefslogtreecommitdiffstats
path: root/src/flowtable.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-12-20 21:03:28 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-12-21 12:04:44 +0100
commit404ef7222d055aacdbd4d73dc0d8731fa8f6cbe4 (patch)
tree9da6e6e6fbdf5d0f086dd810a4b3c8454181a226 /src/flowtable.c
parent16c44d9f42170264c4d484478c76e940951f1b70 (diff)
flowtable: Add missing break
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>
Diffstat (limited to 'src/flowtable.c')
-rw-r--r--src/flowtable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flowtable.c b/src/flowtable.c
index c939306..caf3c13 100644
--- a/src/flowtable.c
+++ b/src/flowtable.c
@@ -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;