]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Allow --tcp-flags ! A B.
authorRusty Russell <rusty@linuxcare.com.au>
Fri, 1 Sep 2000 05:22:10 +0000 (05:22 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 1 Sep 2000 05:22:10 +0000 (05:22 +0000)
extensions/libipt_tcp.c

index 47336f6cb9a6c9197205c2c04e25ef0e9c678712..324ab01318d95f08bdfbbe7abf41a8a980a0e735 100644 (file)
@@ -224,7 +224,8 @@ parse(int c, char **argv, int invert, unsigned int *flags,
                        exit_error(PARAMETER_PROBLEM,
                                   "--tcp-flags requires two args.");
 
-               parse_tcp_flags(tcpinfo, optarg, argv[optind++], invert);
+               parse_tcp_flags(tcpinfo, argv[optind-1], argv[optind++],
+                               invert);
                *flags |= TCP_FLAGS;
                *nfcache |= NFC_IP_TCPFLAGS;
                break;