]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
return error if we can't assert at run-time
authorAlan T. DeKok <aland@freeradius.org>
Thu, 25 Jan 2018 05:22:00 +0000 (00:22 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 25 Jan 2018 05:22:00 +0000 (00:22 -0500)
src/modules/proto_radius/proto_radius_udp.c

index 64564fce6ab4e844867a2d9602fff5abc66b0674..7d5b529d21f07926ddf07fb03d3fb0911c5071ad 100644 (file)
@@ -473,7 +473,7 @@ static int dynamic_client_packet_save(proto_radius_udp_t *inst, uint8_t *packet,
        case FR_TRACKING_ERROR:
        case FR_TRACKING_UNUSED:
                rad_assert(0 == 1);
-               return 0;       /* shouldn't happen */
+               return -1;      /* shouldn't happen */
 
                /*
                 *      Retransmit of the same packet.  There's
@@ -490,7 +490,7 @@ static int dynamic_client_packet_save(proto_radius_udp_t *inst, uint8_t *packet,
        case FR_TRACKING_UPDATED:
                DEBUG3("UPDATED packet");
                rad_assert(0 == 1);
-               return 0;
+               return -1;
 
                /*
                 *      We're NOT done the old packet, and have