]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- For #909: Fix RR class comparison.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 20 Jul 2023 10:16:24 +0000 (12:16 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 20 Jul 2023 10:16:24 +0000 (12:16 +0200)
doc/Changelog
sldns/rrdef.c

index 1f788f6839fbf9b250c7003a984cc06708af22ca..206963cfc567e86b3d1eda0a1eb6d58d12b2bc7b 100644 (file)
@@ -3,6 +3,9 @@
          CLASSXX representation.
        - For #909: Fix return values.
 
+20 July 2023: Wouter
+       - For #909: Fix RR class comparison.
+
 14 July 2023: George
        - More clear description of the different auth-zone behaviors on the
          man page.
index 55ea2d922fa58f00362f0ef85904689c94719bc9..e81ebb1fc4348c123b1ba6ab0e06a04ab173c0db 100644 (file)
@@ -745,7 +745,7 @@ sldns_get_rr_class_by_name(const char *name)
        /* CLASSXX representation */
        if (strlen(name) > 5 && strncasecmp(name, "CLASS", 5) == 0) {
                unsigned int a = atoi(name + 5);
-               if (a > LDNS_RR_TYPE_LAST) {
+               if (a > LDNS_RR_CLASS_LAST) {
                        return (enum sldns_enum_rr_class)0;
                }
                return a;