Skip to content

Commit

Permalink
- For #909: Fix RR class comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcawijngaards committed Jul 20, 2023
1 parent 27c028c commit 8d45c15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/Changelog
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion sldns/rrdef.c
Expand Up @@ -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;
Expand Down

0 comments on commit 8d45c15

Please sign in to comment.