DMARC: fix use-after-free in dmarc_dns_lookup
authorLorenz Brun <lorenz@brun.one>
Fri, 14 Oct 2022 19:02:51 +0000 (21:02 +0200)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Tue, 18 Oct 2022 20:59:52 +0000 (22:59 +0200)
commit12fb3842f81bcbd4a4519d5728f2d7e0e3ca1445
tree195c6b2a3d53f9a94aeb9d4c2de6a0303484cbb3
parent1561c5d88b3a23a4348d8e3c1ce28554fcbcfe46
DMARC: fix use-after-free in dmarc_dns_lookup

This fixes a use-after-free in dmarc_dns_lookup where the result
of dns_lookup in dnsa is freed before the required data is copied out.

Fixes: 9258363 ("DNS: explicit alloc/free of workspace")
src/src/dmarc.c