Subject: Re: [PATCH] Fix lookup with HOSTALIASES set.

Re: [PATCH] Fix lookup with HOSTALIASES set.

From: Mike Crowe <mac_at_mcrowe.com>
Date: Tue, 5 Oct 2010 10:06:45 +0100

On Thu, Sep 23, 2010 at 07:11:33PM +0200, Tommie Gannert wrote:
> Mike Crowe wrote:
> > ares__read_line returns ARES_EOF when it reaches the end of the
> > file. This will happen every time when reading to the end of the
> > HOSTALIASES file. Unfortunately single_domain treats this error as
> > being fatal.
> >
> It looks to me you are right. ares__read_line() returns ARES_EOF
> when fgets() returns NULL.

Thanks Tommie for confirming the bug and investigating further.

Thanks Daniel for committing.

Mike.
Received on 2010-10-05