summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_tcpmss.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libxt_tcpmss.c')
-rw-r--r--extensions/libxt_tcpmss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_tcpmss.c b/extensions/libxt_tcpmss.c
index e64a1b33..d30aa249 100644
--- a/extensions/libxt_tcpmss.c
+++ b/extensions/libxt_tcpmss.c
@@ -26,7 +26,7 @@ parse_tcp_mssvalue(const char *mssvalue)
{
unsigned int mssvaluenum;
- if (string_to_number(mssvalue, 0, UINT16_MAX, &mssvaluenum) != -1)
+ if (!xtables_strtoui(mssvalue, NULL, &mssvaluenum, 0, UINT16_MAX))
return mssvaluenum;
exit_error(PARAMETER_PROBLEM,