From: Alan T. DeKok Date: Thu, 21 Jan 2021 19:20:19 +0000 (-0500) Subject: try to shut up compiler X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d8d224b3416e59f540940985b0b303a4e34b95c;p=thirdparty%2Ffreeradius-server.git try to shut up compiler --- diff --git a/src/protocols/radius/packet.c b/src/protocols/radius/packet.c index ab60c2c8d89..f05f58889a4 100644 --- a/src/protocols/radius/packet.c +++ b/src/protocols/radius/packet.c @@ -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;