This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Linux gethostid: Check for NULL value from gethostbyname_r [BZ #23679]
- From: Florian Weimer <fweimer at redhat dot com>
- To: "Yu\, Mingli" <mingli dot yu at windriver dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Thu, 20 Sep 2018 12:01:55 +0200
- Subject: Re: [PATCH] Linux gethostid: Check for NULL value from gethostbyname_r [BZ #23679]
- References: <87zhwdjjmd.fsf@oldenburg.str.redhat.com> <5BA3008D.5010301@windriver.com>
* Mingli Yu:
> On 2018年09月20日 04:51, Florian Weimer wrote:
>> Compared to the version posted on Bugzilla, I added a check on ret. If
>> ret == 0 and hp == NULL, herr and errno are not necessarily valid.
>>
>> Okay for master?
>
> Thanks Florian for your respond! I'm fine with your update for the
> patch.
Thanks, I will check it in.
Florian