[PATCH nft] evaluate: missing break; in str2hooknum()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
---
 src/evaluate.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/evaluate.c b/src/evaluate.c
index a3484c6..7ecb793 100644
--- a/src/evaluate.c
+++ b/src/evaluate.c
@@ -1786,6 +1786,7 @@ static uint32_t str2hooknum(uint32_t family, const char *hook)
 			return NF_INET_POST_ROUTING;
 		else if (!strcmp(hook, "output"))
 			return NF_INET_LOCAL_OUT;
+		break;
 	case NFPROTO_ARP:
 		if (!strcmp(hook, "input"))
 			return NF_ARP_IN;
@@ -1793,6 +1794,7 @@ static uint32_t str2hooknum(uint32_t family, const char *hook)
 			return NF_ARP_FORWARD;
 		else if (!strcmp(hook, "output"))
 			return NF_ARP_OUT;
+		break;
 	default:
 		break;
 	}
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux