1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-05 16:29:42 +00:00

- Larry Lansing fixed ares_parse_srv_reply to properly parse replies

which might contain non-SRV answers, skipping over potential non-SRV
  ones such as CNAMEs.
This commit is contained in:
Yang Tse
2009-11-26 01:21:21 +00:00
parent 4bc98ca85c
commit 57e48c4cf1
4 changed files with 21 additions and 15 deletions

View File

@ -172,14 +172,14 @@ ares_parse_txt_reply (const unsigned char *abuf, int alen,
}
/* Make sure we NULL-terminate */
*((char *) txt_curr->txt + txt_curr->length) = '\0';
/* Move on to the next record */
aptr += rr_len;
}
/* Don't lose memory in the next iteration */
free (rr_name);
rr_name = NULL;
/* Move on to the next record */
aptr += rr_len;
}
if (hostname)