[PATCH] nss_dns: More consistency in corrupt message handling in getnetby*

DJ Delorie dj@redhat.com
Mon Mar 11 21:57:00 GMT 2019


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.



More information about the Libc-alpha mailing list