]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix readzone unknown type print for memory resize.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 26 Jul 2021 14:45:33 +0000 (16:45 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 26 Jul 2021 14:45:33 +0000 (16:45 +0200)
doc/Changelog
testcode/readzone.c

index c00a1a29f51631640dbf8f589ed94a4f8dfd060f..43a1b50a43c8fa59533e1821498bf4af70219bae 100644 (file)
@@ -1,6 +1,7 @@
 26 July 2021: Wouter
        - Merge #512: unbound.service.in: upgrade hardening to latest
          standards.
+       - Fix readzone unknown type print for memory resize.
 
 21 July 2021: Wouter
        - Fix that ldns_zone_new_frm_fp_l counts the line number for an empty
index f0351fc56a36bd19033f409bdbc56184a79ef755..94511e5771f4c7eed65a434637cc360ffe9390d8 100644 (file)
@@ -142,7 +142,12 @@ int main(int argc, char *const *argv)
                                s = -1;
                                break;
                        }
-                       (void) sldns_wire2str_rr_buf(rr, rr_len, str, str_len);
+                       if (print_in_unknown_type_format)
+                               (void) sldns_wire2str_rr_unknown_buf(
+                                       rr, rr_len, str, str_len);
+                       else
+                               (void) sldns_wire2str_rr_buf(
+                                       rr, rr_len, str, str_len);
                }
                fprintf(stdout, "%s", str);
        }