]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_dccp: fix random output of ! on --dccp-option
authorJan Engelhardt <jengelh@medozas.de>
Sun, 21 Aug 2011 07:39:21 +0000 (09:39 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Sun, 21 Aug 2011 07:44:02 +0000 (09:44 +0200)
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: <CAA93jw6mpDL6rLXM+9SpAhafkDdKoSfhAxU8UM87vUqjuzjYJw@mail.gmail.com>
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libxt_dccp.c

index 4e52b38ca91bd0ed9be3fac1a1936de85ea0a8bc..a35cabbda401e7a35bda5857edf1c9c45f3291c0 100644 (file)
@@ -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);
        }
 }