diff options
author | laforge <laforge> | 2001-07-23 02:14:22 +0000 |
---|---|---|
committer | laforge <laforge> | 2001-07-23 02:14:22 +0000 |
commit | 1eef903c702ef52efcbf5e8b04117b3cec591922 (patch) | |
tree | 6b34d5dfc6bca2aff38c5e6f406c0f1700fe8836 /extensions/libipt_multiport.c | |
parent | 24824b73d48ba0590401934597f67b0e982b900d (diff) |
further fixes of string_to_number fixes
Diffstat (limited to 'extensions/libipt_multiport.c')
-rw-r--r-- | extensions/libipt_multiport.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions/libipt_multiport.c b/extensions/libipt_multiport.c index bac4621..6eb5bdf 100644 --- a/extensions/libipt_multiport.c +++ b/extensions/libipt_multiport.c @@ -47,8 +47,9 @@ service_to_port(const char *name, const char *proto) static u_int16_t parse_port(const char *port, const char *proto) { - int portnum; - if ((portnum = string_to_number(port, 0, 65535)) != -1 || + unsigned int portnum; + + if (string_to_number(port, 0, 65535, &portnum) != -1 || (portnum = service_to_port(port, proto)) != -1) return (u_int16_t)portnum; |