]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move UDP check so that it's always run
authorAlan T. DeKok <aland@freeradius.org>
Thu, 26 Jun 2025 15:36:38 +0000 (11:36 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 26 Jun 2025 15:36:38 +0000 (11:36 -0400)
src/modules/rlm_radius/bio.c

index 3a96025dba6192be4b438e6d55f41f8711c2d4e0..f6e056f7ebc531bce375791050e2d7faf2b72278 100644 (file)
@@ -682,11 +682,10 @@ static fr_bio_verify_action_t rlm_radius_verify(UNUSED fr_bio_t *bio, void *veri
                        } else {
                                ERROR("We previously received a packet from this client which included a Message-Authenticator attribute");
                        }
-
-                       if (h->ctx.fd_config.socket_type == SOCK_DGRAM) return FR_BIO_VERIFY_DISCARD;
-
                }
 
+               if (h->ctx.fd_config.socket_type == SOCK_DGRAM) return FR_BIO_VERIFY_DISCARD;
+
                return FR_BIO_VERIFY_ERROR_CLOSE;
        }