]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_tcpmss: fix an inversion while parsing --mss
authorJan Engelhardt <jengelh@medozas.de>
Tue, 24 Mar 2009 21:26:25 +0000 (22:26 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Tue, 24 Mar 2009 21:31:48 +0000 (22:31 +0100)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libxt_tcpmss.c

index 43a4a0d8829e6e61a228cca58df136509a88eaf9..46529f9788d8b79731defedde6d4f23df9e3e195 100644 (file)
@@ -26,7 +26,7 @@ parse_tcp_mssvalue(const char *mssvalue)
 {
        unsigned int mssvaluenum;
 
-       if (!xtables_strtoui(mssvalue, NULL, &mssvaluenum, 0, UINT16_MAX))
+       if (xtables_strtoui(mssvalue, NULL, &mssvaluenum, 0, UINT16_MAX))
                return mssvaluenum;
 
        xtables_error(PARAMETER_PROBLEM,