Fix 1 and 2 octects in-addr.arpa queries

Queries like 85.in-addr.arpa and 94.85.in-addr.arpa were directed
to the wrong server.
This commit is contained in:
Marco d'Itri 2014-10-15 02:15:53 +02:00
parent 3957648d37
commit 257abceab3

View File

@ -1247,7 +1247,11 @@ char *convert_inaddr(const char *s)
if (domcmp(endptr + 1, ".in-addr.arpa"))
return strdup("0.0.0.0");
} else {
c = b; b = a; a = 0;
}
} else {
c = a; a = 0;
}
new = malloc(sizeof("255.255.255.255"));