Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix incorrect allocation in ares_parse_ptr_reply()

  • Loading branch information...
commit 654733a3998f0f72a67add9e386e550fe02da2b2 1 parent b5823d6
Jakub Hrozek authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ares_parse_ptr_reply.c
View
2  ares_parse_ptr_reply.c
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.