Commit 92450223 authored by Mark Andrews's avatar Mark Andrews
Browse files

missing variable, result could be used before being set.

parent fd5fff73
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment