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:
@ -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;
|
||||
|
Reference in New Issue
Block a user