This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] nss_dns: More consistency in corrupt message handling in getnetby*
- From: DJ Delorie <dj at redhat dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 11 Mar 2019 17:57:08 -0400
- Subject: Re: [PATCH] nss_dns: More consistency in corrupt message handling in getnetby*
Florian Weimer <fweimer@redhat.com> writes:
> Setting errno to any value is fine as long it's not 0 or ERANGE. 8-)
I was thinking back to a conversation (maybe here) about polluting errno
by setting it *at all* in functions that should only set h_errno. So, I
flagged a change in whether or not errno was set. I don't know if that
rule applies in this case, but we should at least know if it does or
not, and say so, so we don't unintentionally make things worse.