]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fix number parsing (Piotr Gasidlo)
authorPiotr Gasidło <quaker@pandora.barbara.ds.polsl.gliwice.pl>
Thu, 2 Sep 2004 20:54:43 +0000 (20:54 +0000)
committerPatrick McHardy <kaber@trash.net>
Thu, 2 Sep 2004 20:54:43 +0000 (20:54 +0000)
extensions/libipt_u32.c

index 788413c85a63bd607ebed58903a840562ed3fcb4..1eea83f641835963ed66c5a6c9b549e5d3bd4df1 100644 (file)
@@ -85,7 +85,7 @@ u_int32_t parse_number(char **s, int pos)
        char *end;
        errno = 0;
 
-       number = strtol(*s, &end, 0);
+       number = strtoul(*s, &end, 0);
        if (end == *s)
                exit_error(PARAMETER_PROBLEM, 
                           "u32: at char %d expected number", pos);