Commit 4c92406d authored by Daniel Salzman's avatar Daniel Salzman

zone: fix out-of-scope read (coverity)

parent 502220fa
......@@ -226,8 +226,9 @@ int zone_flush_journal(zone_t *zone)
/* Fetch zone source (where it came from). */
const struct sockaddr_storage *from = NULL;
conf_remote_t master;
if (!zone_is_master(zone)) {
const conf_remote_t master = zone_master(zone);
master = zone_master(zone);
from = &master.addr;
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