From 1eef903c702ef52efcbf5e8b04117b3cec591922 Mon Sep 17 00:00:00 2001 From: laforge Date: Mon, 23 Jul 2001 02:14:22 +0000 Subject: further fixes of string_to_number fixes --- extensions/libip6t_multiport.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'extensions/libip6t_multiport.c') diff --git a/extensions/libip6t_multiport.c b/extensions/libip6t_multiport.c index 0fcefde..d58bbb9 100644 --- a/extensions/libip6t_multiport.c +++ b/extensions/libip6t_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; -- cgit v1.2.3