Skip to content

Commit

Permalink
rr_decode: Fix potential double free
Browse files Browse the repository at this point in the history
Now that we are always releasing the rr_entry and all its data, we might
end up freeing the domain names twice
  • Loading branch information
chouquette committed Mar 19, 2020
1 parent 9768bdb commit 219b180
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rr.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ rr_decode(const uint8_t *ptr, size_t *n, const uint8_t *root, char **ss, uint8_t
return (ptr);
err:
free(*ss);
*ss = NULL;
return (NULL);
}

Expand Down

0 comments on commit 219b180

Please sign in to comment.