From: yasuoka Date: Tue, 6 Feb 2024 10:53:20 +0000 (+0000) Subject: Fix the radius standard module to remove the specified attribute from X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8b505443a0cb3a8095fadf130e4aca5f8c59d22b;p=openbsd Fix the radius standard module to remove the specified attribute from response properly. --- diff --git a/usr.sbin/radiusd/radiusd_standard.c b/usr.sbin/radiusd/radiusd_standard.c index 615938e7209..115748340d1 100644 --- a/usr.sbin/radiusd/radiusd_standard.c +++ b/usr.sbin/radiusd/radiusd_standard.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radiusd_standard.c,v 1.2 2024/01/08 04:16:48 yasuoka Exp $ */ +/* $OpenBSD: radiusd_standard.c,v 1.3 2024/02/06 10:53:20 yasuoka Exp $ */ /* * Copyright (c) 2013, 2023 Internet Initiative Japan Inc. @@ -269,7 +269,7 @@ module_standard_resdeco(void *ctx, u_int q_id, const u_char *req, size_t reqlen, RADIUS_PACKET *radres = NULL; struct attr *attr; - TAILQ_FOREACH(attr, &module->remove_reqattrs, next) { + TAILQ_FOREACH(attr, &module->remove_resattrs, next) { if (radres == NULL && (radres = radius_convert_packet(res, reslen)) == NULL) { syslog(LOG_ERR,