ndb: recognize ip6.arpa postfix in mkptrname()

This commit is contained in:
cinap_lenrek 2012-08-02 22:20:55 +02:00
parent 8e07a4c9a5
commit a13a30e854

View file

@ -81,7 +81,7 @@ mkptrname(char *ip, char *rip, int rlen)
char *p, *np;
int len;
if(cistrstr(ip, "in-addr.arpa")){
if(cistrstr(ip, "in-addr.arpa") || cistrstr(ip, "ip6.arpa")){
nstrcpy(rip, ip, rlen);
return;
}