]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
fix for ldns-testns
authorMatthijs Mekking <matje@NLnetLabs.nl>
Thu, 1 Nov 2012 15:15:00 +0000 (15:15 +0000)
committerMatthijs Mekking <matje@NLnetLabs.nl>
Thu, 1 Nov 2012 15:15:00 +0000 (15:15 +0000)
Changelog
examples/ldns-testpkts.c

index c3ef20ef47425fc5bc9cd451e3a286d204f199be..6b50a82f74da093389858d6e95c641ebddcdfe35 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -2,6 +2,7 @@
 
 1.6.16
        * Fix typo in exporting b32_* symbols to make pyldns load again
+       * Allow leaving the RR owner name empty in ldns-testns datafiles.
 
 1.6.15 2012-10-25
        * Remove LDNS_STATUS_EXISTS_ERR from ldns/error.h to make ldns
index 7a6c020e8698ca4b2772a7c1c6ee0633f6c95bf3..002a6a905e2bb733b3a9f0b38adfc6eacaacc5c4 100644 (file)
@@ -509,12 +509,12 @@ read_entry(FILE* in, const char* name, int *lineno, uint32_t* default_ttl,
                        ldns_status status;
                        if(add_section == LDNS_SECTION_QUESTION)
                                status = ldns_rr_new_question_frm_str(
-                                       &n, parse, *origin, prev_rr);
-                       else status = ldns_rr_new_frm_str(&n, parse, 
+                                       &n, line, *origin, prev_rr);
+                       else status = ldns_rr_new_frm_str(&n, line, 
                                *default_ttl, *origin, prev_rr);
                        if(status != LDNS_STATUS_OK)
                                error("%s line %d:\n\t%s: %s", name, *lineno,
-                                       ldns_get_errorstr_by_id(status), parse);
+                                       ldns_get_errorstr_by_id(status), line);
                        ldns_pkt_push_rr(cur_reply->reply, add_section, n);
                }