X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=src%2Fodhcp6c.c;h=48e3dee1cea2c9545e03583e9dab5578698d20bf;hb=5cbd305a7a7166e5d4d0cb4050560207dfb66c5f;hp=b055b70bed13cc1b8cd05c8cfb4c0675ee65e253;hpb=eb83b7e2af1e85faf27994aefc7ba98ea36f3ae8;p=project%2Fodhcp6c.git diff --git a/src/odhcp6c.c b/src/odhcp6c.c index b055b70..48e3dee 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -1000,7 +1000,7 @@ static int parse_opt_dns_string(const char *src, uint8_t **dst, const bool array i_len -= strlen(src) + (sep ? 1 : 0); src = sep; - if (src) + if (sep) sep = get_sep_pos(src, ARRAY_SEP); } while (i_len); @@ -1035,7 +1035,7 @@ static int parse_opt_ip6(const char *src, uint8_t **dst, const bool array) i_len -= strlen(src) + (sep ? 1 : 0); src = sep; - if (src) + if (sep) sep = get_sep_pos(src, ARRAY_SEP); } while (i_len); @@ -1074,7 +1074,7 @@ static int parse_opt_user_class(const char *src, uint8_t **dst, const bool array i_len -= str_len + (sep ? 1 : 0); src = sep; - if (src) + if (sep) sep = get_sep_pos(src, ARRAY_SEP); } while (i_len);