Subject: Re: [PATCH] Handle CNAME-only in ares_parse_aaaa_reply()

Re: [PATCH] Handle CNAME-only in ares_parse_aaaa_reply()

From: Guenter <lists_at_gknw.net>
Date: Thu, 19 Apr 2012 19:36:10 +0200

Hi Peter,
Am 17.04.2012 02:53, schrieb Peter Griess:
> ---
> ares_parse_aaaa_reply.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/ares_parse_aaaa_reply.c b/ares_parse_aaaa_reply.c
> index 1fbe838..09d6af8 100644
> --- a/ares_parse_aaaa_reply.c
> +++ b/ares_parse_aaaa_reply.c
> @@ -204,7 +204,9 @@ int ares_parse_aaaa_reply(const unsigned char
> *abuf, int alen,
> }
> }
>
> - if (status == ARES_SUCCESS&& naddrs == 0)
> + if (status == ARES_SUCCESS&& naddrs == 0&& naliases == 0)
> + /* the check for naliases to be zero is to make sure CNAME responses
> + don't get caught here */
> status = ARES_ENODATA;
> if (status == ARES_SUCCESS)
> {
> --
> 1.7.5.4
thanks! Applied with b3afe9c.

Gün.
Received on 2012-04-19