From a07498b06d6f8a53b5aeb645f9559517eb8a10e0 Mon Sep 17 00:00:00 2001 From: yasuoka Date: Sat, 13 Jul 2024 14:08:53 +0000 Subject: [PATCH] Fix radius.c again. Previous was old one. --- sbin/iked/radius.c | 8 ++++---- 1 file 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); -- 2.20.1