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

Fix incorrect allocation in ares_parse_ptr_reply()

This commit is contained in:
Jakub Hrozek
2011-06-14 15:56:33 +02:00
parent b5823d6570
commit 654733a399

View File

@ -118,7 +118,7 @@ int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr,
if (hostname)
free(hostname);
hostname = rr_data;
aliases[aliascnt] = malloc((strlen(rr_data)+1) * sizeof(char *));
aliases[aliascnt] = malloc((strlen(rr_data)+1) * sizeof(char));
if (!aliases[aliascnt])
{
status = ARES_ENOMEM;