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: NSS error reporting (bug 20532)


On 08/03/2017 06:48 PM, Andreas Schwab wrote:
> On Aug 03 2017, Florian Weimer <fweimer@redhat.com> wrote:
> 
>> [6]  empty results (while otherwise reporting success)
> 
> Where are empty results a success?

The gethostbyname4_r family of functions could return an empty list with
NSS_STATUS_SUCCESS.  The point I was trying to make is that the types do
not rule this out.

The other NSS service functions do not receive a pointer-to-pointer
argument (unlike the external glibc NSS functions), so the case that
pointer == NULL and NSS_STATUS_SUCCESS cannot happen.

Does this answer your question?

Thanks,
Florian


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