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

Testing new feature.

Refs #784 @30m
parent 52ea845b
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,11 @@ line: NL
}
if (save_dnames_in_table(parser->dname_table,
parser->current_rrset) != 0) {
/* \todo */
}
int ret;
if ((ret = process_rr()) != 0) {
/* Should it fail? */
......@@ -159,6 +164,7 @@ line: NL
error_to_str(knot_zcompile_error_msgs, ret));
free(tmp_dname_str);
if (ret == KNOT_ZCOMPILE_EBADSOA) {
/* \todo this will crash! */
dnslib_rdata_free(&tmp_rdata);
dnslib_rrset_deep_free(&(parser->current_rrset),
1, 1);
......@@ -1356,6 +1362,11 @@ zparser_create()
result->current_rrset = dnslib_rrset_new(NULL, 0, 0, 0);
result->current_rrset->rdata = NULL;
result->dname_table = dnslib_dname_table_new();
if (result->dname_table == NULL) {
return NULL;
}
result->rrsig_orphans = NULL;
return result;
......
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