]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rlm_radius: Fail the first message not the last message
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 11 Apr 2020 17:18:35 +0000 (12:18 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 11 Apr 2020 17:18:35 +0000 (12:18 -0500)
src/modules/rlm_radius/rlm_radius_udp.c

index 292bea2c899f057be908fdb9fec767da773e6dc8..67c0fff61c08428605cd6bd6b5c2536c7b03d5ec 100644 (file)
@@ -1828,7 +1828,7 @@ static void request_mux(fr_event_list_t *el,
                case EMSGSIZE:          /* Packet size exceeds max size allowed on socket */
                        ERROR("%s - Failed sending data over connection %s: %s",
                              h->module_name, h->name, fr_syserror(errno));
-                       fr_trunk_request_signal_fail(h->coalesced[i].treq);
+                       fr_trunk_request_signal_fail(h->coalesced[0].treq);
                        sent = 1;
                        break;
 
@@ -1997,7 +1997,7 @@ static void request_mux_replicate(UNUSED fr_event_list_t *el,
                case EMSGSIZE:          /* Packet size exceeds max size allowed on socket */
                        ERROR("%s - Failed sending data over connection %s: %s",
                              h->module_name, h->name, fr_syserror(errno));
-                       fr_trunk_request_signal_fail(h->coalesced[i].treq);
+                       fr_trunk_request_signal_fail(h->coalesced[0].treq);
                        sent = 1;
                        break;