Commit 319511c6 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman

zone: fixed rare segfault on update

parent 4f843f33
......@@ -121,6 +121,7 @@ static int discover_additionals(const knot_dname_t *owner, struct rr_data *rr_da
/* Drop possible previous additional nodes. */
rr_data->additional = NULL;
const knot_rdataset_t *rrs = &rr_data->rrs;
uint16_t rdcount = rrs->rr_count;
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