diff --git a/sldns/rrdef.c b/sldns/rrdef.c index a7a1e70e63..130324a1f8 100644 --- a/sldns/rrdef.c +++ b/sldns/rrdef.c @@ -702,11 +702,11 @@ sldns_get_rr_type_by_name(const char *name) /* TYPEXX representation */ if (strlen(name) > 4 && strncasecmp(name, "TYPE", 4) == 0) { - unsigned int a = atoi(name + 4); - if (a > LDNS_RR_TYPE_LAST) { - return (enum sldns_enum_rr_type)0; - } - return a; + unsigned int a = atoi(name + 4); + if (a > LDNS_RR_TYPE_LAST) { + return (enum sldns_enum_rr_type)0; + } + return a; } /* Normal types */ @@ -744,12 +744,12 @@ 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) { - return (enum sldns_enum_rr_type)0; - } - return a; - } + unsigned int a = atoi(name + 5); + if (a > LDNS_RR_TYPE_LAST) { + return (enum sldns_enum_rr_type)0; + } + return a; + } /* Normal types */ lt = sldns_lookup_by_name(sldns_rr_classes, name);