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:
parent
4a49e560d4
commit
bfc1d7345f
@ -517,9 +517,13 @@ DnsResourceRecord* dns_resource_record_unref(DnsResourceRecord *rr) {
|
|||||||
|
|
||||||
case DNS_TYPE_OPENPGPKEY:
|
case DNS_TYPE_OPENPGPKEY:
|
||||||
default:
|
default:
|
||||||
|
if (!rr->unparseable)
|
||||||
free(rr->generic.data);
|
free(rr->generic.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rr->unparseable)
|
||||||
|
free(rr->generic.data);
|
||||||
|
|
||||||
free(rr->wire_format);
|
free(rr->wire_format);
|
||||||
dns_resource_key_unref(rr->key);
|
dns_resource_key_unref(rr->key);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user