Commit 42530149 authored by Mark Karpilovskij's avatar Mark Karpilovskij

nameserver: add OPT RR size to fix transfer stats logging

parent 3543ee9a
......@@ -57,7 +57,7 @@ int xfr_process_list(knot_pkt_t *pkt, xfr_put_cb put, knotd_qdata_t *qdata)
}
/* Update counters. */
xfr_stats_add(&xfer->stats, pkt->size);
xfr_stats_add(&xfer->stats, pkt->size + knot_rrset_size(&qdata->opt_rr));
/* If a rrset is larger than the message,
* fail to avoid infinite loop of empty messages */
......
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