Commit ae3154ac authored by Simon Kelley's avatar Simon Kelley

Additional syntax check on MAC wildcards.

parent 3ebe62d1
......@@ -497,6 +497,10 @@ int parse_hex(char *in, unsigned char *out, int maxlen,
sav = in[(j+1)*2];
in[(j+1)*2] = 0;
}
/* checks above allow mix of hexdigit and *, which
is illegal. */
if (strchr(&in[j*2], '*'))
return -1;
out[i] = strtol(&in[j*2], NULL, 16);
mask = mask << 1;
i++;
......
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