Skip to content
Snippets Groups Projects
Commit e2a92e54 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Fix for possible undefined behavior in case of finished AXFR bootstrap.

refs #1431
parent 1e176be8
No related branches found
No related tags found
No related merge requests found
......@@ -608,7 +608,7 @@ int xfr_process_event(xfrworker_t *w, int fd, knot_ns_xfr_t *data, uint8_t *buf,
/* AXFR bootstrap timeout. */
rcu_read_lock();
if (!knot_zone_contents(zone) && data->type == XFR_TYPE_AIN) {
if (ret != KNOTD_EOK && data->type == XFR_TYPE_AIN) {
/* Schedule request (60 - 90s random delay). */
int tmr_s = AXFR_BOOTSTRAP_RETRY;
tmr_s += (30.0 * 1000) * (tls_rand());
......
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