Fix access control when DHCPv6 but no RA in use.

This commit is contained in:
Simon Kelley
2012-05-29 17:06:02 +01:00
parent 9f7f3b1216
commit 51931b888a
3 changed files with 6 additions and 4 deletions

View File

@@ -2952,7 +2952,7 @@ static char *one_opt(int option, char *arg, char *gen_prob, int command_line)
if (!atoi_check(comma, &val) ||
!(new->name = canonicalise_opt(arg)) ||
(data && (len = parse_hex(data, (unsigned char *)data, -1, NULL, NULL)) == -1))
(data && (len = parse_hex(data, (unsigned char *)data, -1, NULL, NULL)) == -1U))
{
problem = _("bad RR record");
break;