Skip to content
Snippets Groups Projects
Commit e5a52bff authored by Daniel Salzman's avatar Daniel Salzman
Browse files

refresh: fix AXFR-style-IXFR processing if a response consists of one-record messages

fixes #608
parent f5eac04f
No related branches found
No related tags found
No related merge requests found
Pipeline #40920 passed
......@@ -359,6 +359,7 @@ static int axfr_consume(knot_pkt_t *pkt, struct refresh_data *data)
if (data->initial_soa_copy != NULL) {
next = axfr_consume_rr(data->initial_soa_copy, data);
knot_rrset_free(data->initial_soa_copy, data->mm);
data->initial_soa_copy = NULL;
if (next != KNOT_STATE_CONSUME) {
return next;
}
......@@ -783,6 +784,7 @@ static int ixfr_consume(knot_pkt_t *pkt, struct refresh_data *data)
if (data->initial_soa_copy != NULL) {
next = ixfr_consume_rr(data->initial_soa_copy, data);
knot_rrset_free(data->initial_soa_copy, data->mm);
data->initial_soa_copy = NULL;
if (next != KNOT_STATE_CONSUME) {
return next;
}
......
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