Merge pull request #324 from mas90/patch-1

Skip any unhandled DNS record type
This commit is contained in:
Aaron Jones 2020-05-11 07:32:41 +00:00 committed by GitHub
commit 458b5d1f89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -702,13 +702,9 @@ static int proc_answer(struct reslist *request, HEADER * header, char *buf, char
rb_strlcpy(request->name, hostbuf, IRCD_RES_HOSTLEN + 1);
return (1);
case T_CNAME:
/* real answer will follow */
current += rd_length;
break;
default:
break;
}
/* skip any other record type e.g. CNAME, DNAME; real answer should follow */
current += rd_length;
}
return (1);