diff options
Diffstat (limited to 'ares/ares_parse_txt_reply.c')
-rw-r--r-- | ares/ares_parse_txt_reply.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ares/ares_parse_txt_reply.c b/ares/ares_parse_txt_reply.c index 6583ffb35..8e24e63b7 100644 --- a/ares/ares_parse_txt_reply.c +++ b/ares/ares_parse_txt_reply.c @@ -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) |