chiark / gitweb /
Fix binary compatibility of string conversion of RRs with internl addr tables
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 10 Dec 2016 01:49:35 +0000 (01:49 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 May 2020 19:24:04 +0000 (20:24 +0100)
commitf948445737c52a7d5206d52a256abe1ce2ce4199
tree36324422a3ab9b1317f85a85cc608de5323032ce
parent2cc21a3fc9a0195184c92f503ce247b014868c09
Fix binary compatibility of string conversion of RRs with internl addr tables

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>
src/types.c