]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
another string_to_number fix
authorHarald Welte <laforge@gnumonks.org>
Thu, 13 Sep 2001 12:59:28 +0000 (12:59 +0000)
committerHarald Welte <laforge@gnumonks.org>
Thu, 13 Sep 2001 12:59:28 +0000 (12:59 +0000)
extensions/libip6t_LOG.c

index ef39c98d74e81a4c1ff666e3286472f4ff594d64..aece4329e3a6d73122ec295806a78559d78a30f9 100644 (file)
@@ -66,9 +66,9 @@ static struct ip6t_log_names ip6t_log_names[]
 static u_int8_t
 parse_level(const char *level)
 {
-       unsigned int lev;
+       unsigned int lev = -1;
 
-       if (string_to_number(level, 0, 7, lev) == -1) {
+       if (string_to_number(level, 0, 7, &lev) == -1) {
                unsigned int i = 0;
 
                for (i = 0;