Subject: PATCH: ares_parse_srv_reply partial CNAME fix

PATCH: ares_parse_srv_reply partial CNAME fix

From: Larry Lansing <llansing_at_google.com>
Date: Wed, 25 Nov 2009 13:58:51 -0800

Attached is a patch to make ares_parse_srv_reply successfully parse an
SRV reply containing non-SRV answers, such as CNAMEs. This code makes
no attempt to follow or validate the CNAME chain, it just skips over
non-SRV answers. This is probably enough for simple replies.

-- 
Larry Lansing
It's Google: Not only do we re-invent the wheel, we vulcanize our own rubber.

Received on 2009-11-25