]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- simdzone-zone-load, use cfg for _state struct in az_parse_file_simdzone
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 10 Dec 2025 15:12:21 +0000 (16:12 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 10 Dec 2025 15:12:21 +0000 (16:12 +0100)
  function.

services/authzone.c

index d9ea3e47e97f562164465d16cb9f9dcb23adda56..d53f1516d805a4b9a713108e303faa28ce6c5341 100644 (file)
@@ -1629,6 +1629,8 @@ az_parse_file(struct auth_zone* z, FILE* in, uint8_t* rr, size_t rrbuflen,
 struct az_parse_state {
        /** The zone that is processed. */
        struct auth_zone* z;
+       /** The config */
+       struct config_file* cfg;
        /** number of errors, if 0 it was read successfully. */
        int errors;
 };
@@ -1739,7 +1741,7 @@ az_parse_file_simdzone(struct auth_zone* z, char* zfilename,
 
        memset(&state, 0, sizeof(state));
        state.z = z;
-       (void)cfg;
+       state.cfg = cfg;
 
        /* Parse and process all RRs.  */
        if (zone_parse(&parser, &options, &buffers, zfilename, &state) != 0) {