[PATCH conntrack] conntrack: add missing break when parsing --id/--secmark options

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

 



commit 147ed522f52a62ab0d854ddc443d27d97dbf6cdf
(conntrack: add support for mark mask) failed to add a break
after secmark/id option parsing.

Results in '-m 42 -c 1' to search for mark 1 instead of 42.

Signed-off-by: Florian Westphal <fw@xxxxxxxxx>
---
 Sorry about this; i did not see it until now...

diff --git a/src/conntrack.c b/src/conntrack.c
index 3e1cb11..8eae554 100644
--- a/src/conntrack.c
+++ b/src/conntrack.c
@@ -1566,6 +1566,7 @@ int main(int argc, char *argv[])
 			nfct_set_attr_u32(tmpl.ct,
 					  opt2attr[c],
 					  strtoul(optarg, NULL, 0));
+			break;
 		case 'm':
 			options |= opt2type[c];
 			parse_u32_mask(optarg, &tmpl.mark);
-- 
1.7.3.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