summaryrefslogtreecommitdiff
path: root/sbin/iked
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2024-07-13 14:08:54 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2024-07-13 14:08:54 +0000
commitb69f4f36154da5abc77efc89d1355b57021effd4 (patch)
tree192fc06a9fe5d4b212f875be03e60c856b4d8d71 /sbin/iked
parent5d35357818d792fdee494a81654a66789cf42b67 (diff)
Fix radius.c again. Previous was old one.
Diffstat (limited to 'sbin/iked')
-rw-r--r--sbin/iked/radius.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/iked/radius.c b/sbin/iked/radius.c
index 1a89962f2a8..f1255a4f2dd 100644
--- a/sbin/iked/radius.c
+++ b/sbin/iked/radius.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: radius.c,v 1.4 2024/07/13 12:25:07 yasuoka Exp $ */
+/* $OpenBSD: radius.c,v 1.5 2024/07/13 14:08:53 yasuoka Exp $ */
/*
* Copyright (c) 2024 Internet Initiative Japan Inc.
@@ -870,9 +870,9 @@ iked_radius_dae_on_event(int fd, short ev, void *ctx)
}
if (radius_get_uint32_attr(req, RADIUS_TYPE_FRAMED_IP_ADDRESS, &u32)
== 0) {
- addr4 = sa->sa_addrpool;
- if (addr4 != NULL) {
- RB_FOREACH(sa, iked_sas, &env->sc_sas) {
+ RB_FOREACH(sa, iked_sas, &env->sc_sas) {
+ addr4 = sa->sa_addrpool;
+ if (addr4 != NULL) {
if (u32 == ((struct sockaddr_in *)&addr4->addr)
->sin_addr.s_addr) {
ikev2_ike_sa_setreason(sa, reason);