Commit 92606ad8 authored by Mike Hibler's avatar Mike Hibler

minor sanity checking of vlan tag

parent 1285ac96
......@@ -1663,6 +1663,12 @@ COMMAND_PROTOTYPE(doifconfig)
else if (strcmp(row[6], "vlan") == 0)
tag = row[9];
/* sanity check the tag */
if (!isdigit(tag[0])) {
error("IFCONFIG: bogus encap tag '%s'\n", tag);
tag = "0";
}
bufp += OUTPUT(bufp, ebufp - bufp, " VTAG=%s", tag);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment