Correct NS and SOA records in auth mode for PTR queries.

This commit is contained in:
Simon Kelley
2012-12-04 20:49:24 +00:00
parent 5c0bd5b112
commit 45dd1fece4
2 changed files with 76 additions and 34 deletions

View File

@@ -1573,6 +1573,8 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
if (inet_pton(AF_INET, arg, &subnet->addr4))
{
if ((prefixlen & 0x07) != 0 || prefixlen > 24)
ret_err(_("bad prefix"));
subnet->prefixlen = (prefixlen == 0) ? 24 : prefixlen;
subnet->is6 = 0;
}