This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


* DJ Delorie:

> 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.

I'm not aware of such a discussion.  The h_errno == NETDB_INTERNAL
definitely needs to set errno, to name just one example.

What do you think about the nss_dns patch, given this aspect?

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]