From: Roy Marples Date: Tue, 4 Jun 2013 10:42:16 +0000 (+0000) Subject: Allow ia_pd 1 eth2//64 X-Git-Tag: v6.0.0~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=839192665e78afb0d24f9467f19e7aea2464276e;p=thirdparty%2Fdhcpcd.git Allow ia_pd 1 eth2//64 --- diff --git a/if-options.c b/if-options.c index 69a5a45c..c9f56ad5 100644 --- a/if-options.c +++ b/if-options.c @@ -1033,11 +1033,15 @@ got_iaid: np = strchr(p, '/'); if (np) *np++ = '\0'; - errno = 0; - sla->sla = atoint(p); - sla->sla_set = 1; - if (errno) - return -1; + if (*p == '\0') + sla->sla_set = 0; + else { + errno = 0; + sla->sla = atoint(p); + sla->sla_set = 1; + if (errno) + return -1; + } if (np) { sla->prefix_len = atoint(np); if (sla->prefix_len < 0 ||