]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
clarify error a little bit
authorAlan T. DeKok <aland@freeradius.org>
Mon, 23 Mar 2026 00:20:09 +0000 (13:20 +1300)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 24 Mar 2026 20:39:22 +0000 (09:39 +1300)
src/modules/rlm_radius/rlm_radius.c

index 0955386435855c8b4ad1acbcbc9addfc0007fd22..9ad0e0dbf053dbfeb3727074758324fa7520df7d 100644 (file)
@@ -325,8 +325,12 @@ static int type_parse(UNUSED TALLOC_CTX *ctx, void *out, UNUSED void *parent,
        }
 
        if (!code ||
-           (code >= FR_RADIUS_CODE_MAX) ||
-           (!type_interval_config[code].name1)) goto invalid_code;
+           (code >= FR_RADIUS_CODE_MAX)) goto invalid_code;
+
+       if (!type_interval_config[code].name1) {
+               cf_log_err(ci, "Invalid packet type '%s' - cannot proxy a response packet", type_str);
+               return -1;
+       }
 
        /*
         *      If we're doing async proxying, push the timers for the