chiark / gitweb /
src/types.c: Use the new `checklabel' machinery for PTR queries.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 21 May 2014 08:40:33 +0000 (09:40 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 21 May 2014 08:40:33 +0000 (09:40 +0100)
commite4007092f843cf382791448bcb839ff13c13c535
tree58bed9e0c34790a68a14ec903e9a72dcfcce4492
parent3540caec6116f7c66d43cabec178d5e622a10f76
src/types.c: Use the new `checklabel' machinery for PTR queries.

Previously we'd check the query name and parse it into an address while
parsing the answer to the initial query, which means that you only get
an error about the name being malformed after waiting for the answer.
Now we have a better placed hook for dealing with this, so we should use
it.
src/internal.h
src/types.c