]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't assert at higher debug levels
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 22 Feb 2019 08:32:47 +0000 (16:32 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 22 Feb 2019 08:32:47 +0000 (16:32 +0800)
src/lib/server/xlat_func.c

index 623b3e24acfabd3f890c3341ea8be842f99740a0..030b6c12f5b819ee4ec1c5524239544a7ddd6c6b 100644 (file)
@@ -466,12 +466,7 @@ static ssize_t xlat_debug_attr(UNUSED TALLOC_CTX *ctx, UNUSED char **out, UNUSED
                        if ((fr_type_t) type->number == vp->vp_type) goto next_type;
 
                        switch (type->number) {
-                       case FR_TYPE_INVALID:           /* Not real type */
-                       case FR_TYPE_MAX:               /* Not real type */
-                       case FR_TYPE_COMBO_IP_ADDR:     /* Covered by IPv4 address IPv6 address */
-                       case FR_TYPE_COMBO_IP_PREFIX:   /* Covered by IPv4 address IPv6 address */
-                       case FR_TYPE_TIMEVAL:           /* Not a VALUE_PAIR type */
-                       case FR_TYPE_STRUCTURAL:
+                       case FR_TYPE_NON_VALUES:        /* Skip everything that's not a value */
                                goto next_type;
 
                        default: