]> 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 Aug 2024 12:51:14 +0000 (08:51 -0400)
src/main/listen.c

index 7456f2cf3c1cf90f07ec713b248cc00fc9b9f527..e0ae6bdc1e5501202ee513e17c2d6c25915712bd 100644 (file)
@@ -2559,7 +2559,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());