1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 09:56:51 +03:00

resolved: fix confusion with generic data in unparsable packets

Issue 5465.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-01-18 20:19:48 +11:00
parent 4a49e560d4
commit bfc1d7345f

View File

@ -517,9 +517,13 @@ DnsResourceRecord* dns_resource_record_unref(DnsResourceRecord *rr) {
case DNS_TYPE_OPENPGPKEY:
default:
if (!rr->unparseable)
free(rr->generic.data);
}
if (rr->unparseable)
free(rr->generic.data);
free(rr->wire_format);
dns_resource_key_unref(rr->key);
}