From f17fd48448aafdc762a3b439864bcb1127b0da6c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 21 Aug 2011 09:39:21 +0200 Subject: libxt_dccp: fix random output of ! on --dccp-option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dccp-option tests info->typemask, but it really should look at info->invflags instead. This bug goes back to commit v1.3.4~11. References: Dave Täht via netfilter-devel on 2011-08-20 14:40:11 -0700 References: Signed-off-by: Jan Engelhardt --- extensions/libxt_dccp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions') diff --git a/extensions/libxt_dccp.c b/extensions/libxt_dccp.c index 4e52b38c..a35cabbd 100644 --- a/extensions/libxt_dccp.c +++ b/extensions/libxt_dccp.c @@ -272,7 +272,7 @@ static void dccp_save(const void *ip, const struct xt_entry_match *match) if (einfo->flags & XT_DCCP_OPTION) { printf("%s --dccp-option %u", - einfo->typemask & XT_DCCP_OPTION ? " !" : "", + einfo->invflags & XT_DCCP_OPTION ? " !" : "", einfo->option); } } -- cgit v1.2.3