diff options
Diffstat (limited to 'extensions/libipt_mport.c')
-rw-r--r-- | extensions/libipt_mport.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions/libipt_mport.c b/extensions/libipt_mport.c index 38474cde..f2dfd1e1 100644 --- a/extensions/libipt_mport.c +++ b/extensions/libipt_mport.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 (portnum = string_to_number(port, 0, 65535, &portnum) != -1 || (portnum = service_to_port(port, proto)) != -1) return (u_int16_t)portnum; |