Queries without adns__qtf_bigaddr use a smaller stride than the
size of our own adns_rr_addr. This is dealt with by explicit
calculation of the addr struct using the stride from gsz_addr.
However, this circumlocution was omitted in cs_hostaddr, with the
result that adns_rr_info would go wrong for old clients.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
adns_status st;
char buf[20];
int i;
+ size_t addrsz= gsz_addr(0, rrt);
st= csp_domain(vb,rrp->host); if (st) return st;
CSP_ADDSTR(" (");
for (i=0; i<rrp->naddrs; i++) {
CSP_ADDSTR(" ");
- st= csp_addr(vb,&rrp->addrs[i]);
+ st= csp_addr(vb, (const void*)((const char*)rrp->addrs + addrsz*i));
}
CSP_ADDSTR(" )");
} else {