if (cp + 2 * INT16SZ > eom1) return (-1);
res_queriesmatch(buf1, eom1, buf2, eom2)	const u_char *buf1, *eom1;	const u_char *buf2, *eom2;{	register const u_char *cp = buf1 + HFIXEDSZ;	int qdcount = ntohs(((HEADER*)buf1)->qdcount);	if (qdcount != ntohs(((HEADER*)buf2)->qdcount))		return (0);	while (qdcount-- > 0) {		char tname[MAXDNAME+1];		register int n, ttype, tclass;		n = dn_expand(buf1, eom1, cp, tname, sizeof tname);		if (n < 0)			return (-1);		cp += n;		ttype = _getshort(cp);	cp += INT16SZ;		tclass = _getshort(cp); cp += INT16SZ;		if (!res_nameinquery(tname, ttype, tclass, buf2, eom2))			return (0);	}	return (1);}