2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

missing variable, result could be used before being set.

This commit is contained in:
Mark Andrews
1999-10-14 04:20:20 +00:00
parent fd5fff738d
commit 92450223ca

View File

@@ -1654,6 +1654,8 @@ send_update_event(ns_client_t *client, dns_zone_t *zone) {
event->result = DNS_R_SUCCESS;
isc_task_send(dns_zone_gettask(zone), (isc_event_t **) &event);
result = DNS_R_SUCCESS;
failure:
if (event != NULL)
isc_event_free((isc_event_t **) &event);
@@ -1772,6 +1774,7 @@ update_action(isc_task_t *task, isc_event_t *event)
dns_message_t *request = client->message;
dns_rdataclass_t zoneclass;
dns_name_t *zonename;
dns_result_t render_result;
INSIST(event->type == DNS_EVENT_UPDATE);
INSIST(task == dns_zone_gettask(zone));