Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 24 Aug 2020 23:51:52 +0200
From: Daniel Neri <dne+musl@...7.eu>
To: musl@...ts.openwall.com
Subject: Re: Incompatible behaviour of res_query(3) w.r.t. NXDOMAIN

On 24 Aug 2020, at 23:32, Rich Felker <dalias@...c.org> wrote:
> 
> Does such a distinction exist? I thought res_query was just equivalent
> to res_mkquery+res_send and that calling res_send directly would get
> you the same errors.

I thought so too, but I’ve been reading the musl implementation. ;-)

After looking more at the other implementations, I think Florian is correct though: it’s more like res_mkquery+res_send+setting h_errno and the return value based on the RCODE of the response.

Regards,
Daniel


Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.