removed error when parsing zonefiles and a line does not contain an RR
}
if (ldns_bget_token(rr_buf, rdata, "\0", LDNS_MAX_PACKETLEN) == -1) {
+ /* apparently we are done, and it's only a question RR
+ * so do not free and error here
LDNS_FREE(owner);
LDNS_FREE(ttl);
LDNS_FREE(clas);
ldns_buffer_free(rr_buf);
ldns_rr_free(new);
return NULL;
+ */
}
ldns_buffer_new_frm_data(
my_class = ldns_rr_get_class(rr);
} else {
+ /* hmz if $ORIGIN was read there is no RR either */
+ /* we need to add a feedbacking function */
+ /*
fprintf(stderr, "Error in file, unable to read RR");
if (line_nr) {
fprintf(stderr, " at line %d.\n", *line_nr);
fprintf(stderr, "Last rr that was parsed:\n");
ldns_rr_print(stderr, last_rr);
dprintf("%s", "\n");
+ */
}
}
if (my_origin) {