Fix the radius standard module to remove the specified attribute from
authoryasuoka <yasuoka@openbsd.org>
Tue, 6 Feb 2024 10:53:20 +0000 (10:53 +0000)
committeryasuoka <yasuoka@openbsd.org>
Tue, 6 Feb 2024 10:53:20 +0000 (10:53 +0000)
response properly.

usr.sbin/radiusd/radiusd_standard.c

index 615938e..1157483 100644 (file)
@@ -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,