mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Fix tkey.c:buildquery() function's error handling
Add the missing cleanup code. (cherry picked from commit 4237ab9550eeaea7121e3e3392fd14c26b5150f0)
This commit is contained in:
parent
b4ab890c71
commit
b46e53a2e3
1 changed files with 12 additions and 0 deletions
|
|
@ -1020,6 +1020,18 @@ failure:
|
|||
if (dynbuf != NULL) {
|
||||
isc_buffer_free(&dynbuf);
|
||||
}
|
||||
if (rdata != NULL) {
|
||||
dns_message_puttemprdata(msg, &rdata);
|
||||
}
|
||||
if (tkeylist != NULL) {
|
||||
dns_message_puttemprdatalist(msg, &tkeylist);
|
||||
}
|
||||
if (tkeyset != NULL) {
|
||||
if (dns_rdataset_isassociated(tkeyset)) {
|
||||
dns_rdataset_disassociate(tkeyset);
|
||||
}
|
||||
dns_message_puttemprdataset(msg, &tkeyset);
|
||||
}
|
||||
return (result);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue