]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix unit test parse of origin syntax.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 9 Nov 2023 14:26:46 +0000 (15:26 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 9 Nov 2023 14:26:46 +0000 (15:26 +0100)
doc/Changelog
testcode/testpkts.c

index 6a81982607335df2a7e6655745e6783e98c126ab..894a9a6c7442d3ea16641fa3a662cd77d56a66cf 100644 (file)
@@ -1,3 +1,6 @@
+9 November 2023: Wouter
+       - Fix unit test parse of origin syntax.
+
 2 November 2023: Wouter
        - Set version number to 1.19.0.
        - Tag for 1.19.0rc1 release. It became 1.19.0 release on 8 nov 2023.
index aa852f01ee47df1c1aa71bda8f6faedf1a4697d6..8c68c48415a4885f967344705534436da1a0117e 100644 (file)
@@ -470,6 +470,7 @@ get_origin(const char* name, struct sldns_file_parse_state* pstate, char* parse)
        store = *end;
        *end = 0;
        verbose(3, "parsing '%s'\n", parse);
+       pstate->origin_len = sizeof(pstate->origin);
        status = sldns_str2wire_dname_buf(parse, pstate->origin,
                &pstate->origin_len);
        *end = store;