From 7f8a8c370aec18f421159bfc2f8c5002cff48d9d Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Thu, 17 Jan 2008 17:49:28 +0000 Subject: Max Kellermann : explicitly cast in nat_parse() Previous commit was an error --- src/conntrack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conntrack.c') 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); -- cgit v1.2.3