Skip to content
Snippets Groups Projects
Commit 9cd09781 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Moved rcu lock - should fix crashing with concurrent update and reload.

parent 04dfbde0
No related branches found
No related tags found
No related merge requests found
......@@ -955,6 +955,8 @@ static int xfr_process_request(xfrworker_t *w, uint8_t *buf, size_t buflen)
sockaddr_tostr(&xfr.addr, r_addr, sizeof(r_addr));
int r_port = sockaddr_portnum(&xfr.addr);
conf_read_lock();
/* Handle request. */
knot_ns_xfr_t *task = 0;
evsched_t *sch = 0;
......@@ -967,7 +969,6 @@ static int xfr_process_request(xfrworker_t *w, uint8_t *buf, size_t buflen)
zname = zd->conf->name;
}
conf_read_lock();
/* XFR request state tracking. */
int init_failed = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment