]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
* Fix that ldns-read-zone and ldns_zone_new_frm_fp_l properly return
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 21 Jul 2021 10:06:15 +0000 (12:06 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 21 Jul 2021 10:06:15 +0000 (12:06 +0200)
  the $INCLUDE not implemented error.

Changelog
zone.c

index 03f86de24c0650a971a9848c001d8e86be4e179f..2eac649ecf019e96e99d7507233923ae094615ff 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -26,6 +26,8 @@
          LDNS_MAX_LINELEN
        * Add SVCPARAMS to python ldns_rdf_type2str function.
        * PR #134 Miscellaneous spelling fixes. Thanks jsoref!
+       * Fix that ldns-read-zone and ldns_zone_new_frm_fp_l properly return
+         the $INCLUDE not implemented error.
 
 1.7.1  2019-07-26
        * bugfix: Manage verification paths for OpenSSL >= 1.1.0
diff --git a/zone.c b/zone.c
index fcae411243a18209ca07a1d9f4000e2740d7681d..00b559bfa332045170ae5a46f8cd2aacc2a27cca 100644 (file)
--- a/zone.c
+++ b/zone.c
@@ -261,7 +261,7 @@ ldns_zone_new_frm_fp_l(ldns_zone **z, FILE *fp, const ldns_rdf *origin, uint32_t
                        break;
                case LDNS_STATUS_SYNTAX_INCLUDE:
                        ret = LDNS_STATUS_SYNTAX_INCLUDE_ERR_NOTIMPL;
-                       break;
+                       goto error;
                default:
                        ret = s;
                        goto error;