Blame SOURCES/0006-flowtable-Add-missing-break.patch

462cee
From d3d9966d79cc7d6d11124302dd06b7d7522e7305 Mon Sep 17 00:00:00 2001
462cee
From: Phil Sutter <psutter@redhat.com>
462cee
Date: Tue, 29 Jan 2019 18:12:15 +0100
462cee
Subject: [PATCH] flowtable: Add missing break
462cee
462cee
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1661327
462cee
Upstream Status: libnftnl commit 404ef7222d055
462cee
462cee
commit 404ef7222d055aacdbd4d73dc0d8731fa8f6cbe4
462cee
Author: Phil Sutter <phil@nwl.cc>
462cee
Date:   Thu Dec 20 21:03:28 2018 +0100
462cee
462cee
    flowtable: Add missing break
462cee
462cee
    In nftnl_flowtable_set_data(), when setting flowtable size, the switch()
462cee
    case fell through and the same value was copied into ft_flags field.
462cee
    This can't be right.
462cee
462cee
    Fixes: 41fe3d38ba34b ("flowtable: support for flags")
462cee
    Signed-off-by: Phil Sutter <phil@nwl.cc>
462cee
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
462cee
---
462cee
 src/flowtable.c | 1 +
462cee
 1 file changed, 1 insertion(+)
462cee
462cee
diff --git a/src/flowtable.c b/src/flowtable.c
462cee
index c1ddae4..aa6ce59 100644
462cee
--- a/src/flowtable.c
462cee
+++ b/src/flowtable.c
462cee
@@ -163,6 +163,7 @@ int nftnl_flowtable_set_data(struct nftnl_flowtable *c, uint16_t attr,
462cee
 		break;
462cee
 	case NFTNL_FLOWTABLE_SIZE:
462cee
 		memcpy(&c->size, data, sizeof(c->size));
462cee
+		break;
462cee
 	case NFTNL_FLOWTABLE_FLAGS:
462cee
 		memcpy(&c->ft_flags, data, sizeof(c->ft_flags));
462cee
 		break;
462cee
-- 
462cee
1.8.3.1
462cee