From: Alan T. DeKok Date: Fri, 17 Jul 2026 12:36:02 +0000 (-0400) Subject: check for more corner cases in radius tracking list X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=293d7345bb948ece965b2b67a5e0285664bd9652;p=thirdparty%2Ffreeradius-server.git check for more corner cases in radius tracking list --- diff --git a/src/protocols/radius/list.c b/src/protocols/radius/list.c index 35e0ce249a7..e88e9a8f8c4 100644 --- a/src/protocols/radius/list.c +++ b/src/protocols/radius/list.c @@ -413,7 +413,7 @@ bool fr_packet_list_id_alloc(fr_packet_list_t *pl, int proto, int i, j, k, fd, id, start_i, start_j, start_k; int src_any = 0; int type; - fr_packet_socket_t *ps= NULL; + fr_packet_socket_t *ps = NULL; if ((request->socket.inet.dst_ipaddr.af == AF_UNSPEC) || (request->socket.inet.dst_port == 0)) { @@ -443,6 +443,11 @@ bool fr_packet_list_id_alloc(fr_packet_list_t *pl, int proto, return false; } + if (!pl->num_sockets) { + fr_strerror_const("No sockets have been added to the packet list"); + return false; + } + /* * FIXME: Go to an LRU system. This prevents ID reuse * for as long as possible. The main problem with that