summaryrefslogtreecommitdiffstats
path: root/src/conntrack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conntrack.c')
-rw-r--r--src/conntrack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conntrack.c b/src/conntrack.c
index 4d0642c..82ff544 100644
--- a/src/conntrack.c
+++ b/src/conntrack.c
@@ -473,7 +473,7 @@ nat_parse(char *arg, int portok, struct nf_conntrack *obj, int type)
exit_error(PARAMETER_PROBLEM,
"Need TCP or UDP with port specification");
- port = atoi(colon+1);
+ port = (uint16_t)atoi(colon+1);
if (port == 0)
exit_error(PARAMETER_PROBLEM,
"Port `%s' not valid\n", colon+1);