From ce1078f6e8211fb2b510f80f9f27ad15f67c6ff2 Mon Sep 17 00:00:00 2001 From: yasuoka Date: Wed, 14 Aug 2024 04:44:07 +0000 Subject: [PATCH] Don't abort the query when a duplicated query is received. Also tweak the log message. --- usr.sbin/radiusd/radiusd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/radiusd/radiusd.c b/usr.sbin/radiusd/radiusd.c index 571d18dd1bf..a48e5f33ab4 100644 --- a/usr.sbin/radiusd/radiusd.c +++ b/usr.sbin/radiusd/radiusd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radiusd.c,v 1.52 2024/07/22 09:27:16 yasuoka Exp $ */ +/* $OpenBSD: radiusd.c,v 1.53 2024/08/14 04:44:07 yasuoka Exp $ */ /* * Copyright (c) 2013, 2023 Internet Initiative Japan Inc. @@ -518,10 +518,10 @@ radiusd_listen_handle_packet(struct radiusd_listen *listn, break; /* found it */ } if (q != NULL) { - log_info("Received %s(code=%d) from %s id=%d: duplicate " - "request by q=%u", radius_code_string(req_code), req_code, + log_info("Received %s(code=%d) from %s id=%d: duplicated " + "with q=%u", radius_code_string(req_code), req_code, peerstr, req_id, q->id); - /* XXX RFC 5080 suggests to answer the cached result */ + q = NULL; goto on_error; } -- 2.20.1