]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
try to shut up compiler
authorAlan T. DeKok <aland@freeradius.org>
Thu, 21 Jan 2021 19:20:19 +0000 (14:20 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 21 Jan 2021 19:20:19 +0000 (14:20 -0500)
src/protocols/radius/packet.c

index ab60c2c8d89de6e979473e55c2f841255c2477e8..f05f58889a40fbbfd9458d0532bea9a66040d409 100644 (file)
@@ -179,6 +179,7 @@ int fr_radius_packet_decode(fr_radius_packet_t *packet, fr_pair_list_t *list,
         */
        hdr = (radius_packet_t *)packet->data;
        ptr = hdr->data;
+       fr_assert(ptr != NULL);
        packet_length = packet->data_len - RADIUS_HEADER_LENGTH;
        num_attributes = 0;