]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix parsing prefix_len
authorRoy Marples <roy@marples.name>
Wed, 3 Feb 2016 10:15:34 +0000 (10:15 +0000)
committerRoy Marples <roy@marples.name>
Wed, 3 Feb 2016 10:15:34 +0000 (10:15 +0000)
if-options.c

index 5330d6dc5ee62a1857385bc3933d6cdea563ac73..f9264ff1866dccfde4f38d7c448bdd5ec4f3451d 100644 (file)
@@ -1438,7 +1438,7 @@ parse_option(struct dhcpcd_ctx *ctx, const char *ifname, struct if_options *ifo,
                                if (np)
                                        *np++ = '\0';
                                if (*p != '\0') {
-                                       sla->prefix_len = (uint8_t)strtou(np,
+                                       sla->prefix_len = (uint8_t)strtou(p,
                                    NULL, 0, 0, 120, &e);
                                        if (e) {
                                                logger(ctx, LOG_ERR,