From 413b26a719d402a30e61c8f93cf7cbf2f19375e3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 17 May 2020 19:38:29 +0000 Subject: Fix resolveq_aaaaa If s6dns_resolveq_aaaaa gets nodata on the AAAA query for a qualified domain, it will now wait for the answer to the A query on the same qualified domain before returning. Even if it gets nodata, it still means that the domain exists, so it will not wait for results from other qualification attempts. --- doc/libs6dns/s6dns-message.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/libs6dns/s6dns-message.html') diff --git a/doc/libs6dns/s6dns-message.html b/doc/libs6dns/s6dns-message.html index 1c5a92d..315b375 100644 --- a/doc/libs6dns/s6dns-message.html +++ b/doc/libs6dns/s6dns-message.html @@ -257,7 +257,8 @@ containing s6dns_message_rr_caa_t structures. It stores the packet header into *h. Then, for every RR in the answer, authority or additional section of the packet, it calls f with the relevant parameters. data is the extra pointer given to f to -store information. The function returns 1 if the parsing succeeds. Otherwise it +store information. If the parsing succeeds, the function returns 2 if the packet +contains an answer section and 1 if it does not. Otherwise, it returns -1 if there is a local error unrelated to the packet, or 0 if no appropriate answer can be decoded from the packet. errno then contains one of the following values: -- cgit v1.2.3