Skip to content

Commit e89601d

Browse files
committed
status checks can expire, too
1 parent 3b7227b commit e89601d

File tree

1 file changed

+6
-0
lines changed
  • src/modules/rlm_radius

1 file changed

+6
-0
lines changed

src/modules/rlm_radius/bio.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,12 @@ static void conn_init_readable(fr_event_list_t *el, UNUSED int fd, UNUSED int fl
469469
*/
470470
fr_assert(slen >= RADIUS_HEADER_LENGTH); /* checked in verify */
471471

472+
if (!u->packet) {
473+
ERROR("%s - Received response to expired status check packet",
474+
h->ctx.module_name);
475+
return;
476+
}
477+
472478
if (u->id != h->buffer[1]) {
473479
ERROR("%s - Received response with incorrect or expired ID. Expected %u, got %u",
474480
h->ctx.module_name, u->id, h->buffer[1]);

0 commit comments

Comments
 (0)