attempt to fix double-free introduced in e0517f9

pull/321/head
Brad House 5 years ago
parent 61f06d2a58
commit 910df394fc
  1. 3
      ares_parse_soa_reply.c

@ -85,7 +85,8 @@ ares_parse_soa_reply(const unsigned char *abuf, int alen,
/* examine all the records, break and return if found soa */
for (i = 0; i < ancount; i++)
{
status = ares__expand_name_for_response (aptr, abuf, alen, &rr_name, &len);
rr_name = NULL;
status = ares__expand_name_for_response (aptr, abuf, alen, &rr_name, &len);
if (status != ARES_SUCCESS)
{
ares_free(rr_name);

Loading…
Cancel
Save