diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-17 17:49:28 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-17 17:49:28 +0000 |
commit | 7f8a8c370aec18f421159bfc2f8c5002cff48d9d (patch) | |
tree | cc069bd0a5748458f3d6ab24327a978aba82b7da | |
parent | 9a0783f6ed4f90c44f3cc2722e7ad3ec5a7c065b (diff) | |
download | conntrack-tools-7f8a8c370aec18f421159bfc2f8c5002cff48d9d.tar.gz conntrack-tools-7f8a8c370aec18f421159bfc2f8c5002cff48d9d.zip |
Max Kellermann <max@duempel.org>:
explicitly cast in nat_parse()
Previous commit was an error
-rw-r--r-- | src/conntrack.c | 2 |
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); |