]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fixed ! test cases.
authorRusty Russell <rusty@linuxcare.com.au>
Fri, 1 Sep 2000 05:39:52 +0000 (05:39 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 1 Sep 2000 05:39:52 +0000 (05:39 +0000)
extensions/libipt_tcp.c

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