]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove dup type check
authorRoy Marples <roy@marples.name>
Sun, 1 Dec 2013 17:45:42 +0000 (17:45 +0000)
committerRoy Marples <roy@marples.name>
Sun, 1 Dec 2013 17:45:42 +0000 (17:45 +0000)
if-options.c

index eb68fa50b9550da0a0457c23d9fc903e6fd7579a..f097573766a940f700404636394a3825b3008b44 100644 (file)
@@ -1372,10 +1372,7 @@ parse_option(struct if_options *ifo, int opt, const char *arg)
                        free_dhcp_opt_embenc(ndop);
                ndop->option = i; /* could have been 0 */
                ndop->type = t;
-               if (t & (STRING | BINHEX))
-                       ndop->len = l;
-               else
-                       ndop->len = 0;
+               ndop->len = l;
                ndop->v.dvar = np;
                /* Save the define for embed and encap options */
                if (opt == O_DEFINE || opt == O_DEFINE6)