]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set correct flag. Fixes #5397
authorAlan T. DeKok <aland@freeradius.org>
Fri, 9 Aug 2024 12:51:14 +0000 (08:51 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 9 May 2025 15:14:47 +0000 (11:14 -0400)
src/main/listen.c

index 9644da1f5d3146649ba59280144071612dda8d72..d7152e5bf1e47cdf1ecc2447a0d687b6c8d11290 100644 (file)
@@ -2199,7 +2199,7 @@ static int coa_socket_recv(rad_listen_t *listener)
         *      Now that we've sanity checked everything, receive the
         *      packet.
         */
-       packet = rad_recv(ctx, listener->fd, client->require_ma);
+       packet = rad_recv(ctx, listener->fd, (client->require_ma == FR_BOOL_TRUE));
        if (!packet) {
                FR_STATS_INC(coa, total_malformed_requests);
                if (DEBUG_ENABLED) ERROR("Receive - %s", fr_strerror());