From 992616c01bdd1c3762eb7dc002d08536c28350d0 Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Thu, 31 Aug 2023 08:07:15 -0700 Subject: [PATCH] https://telecominfraproject.atlassian.net/browse/WIFI-12868 Signed-off-by: stephb9959 --- src/RADIUS_proxy_server.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/RADIUS_proxy_server.cpp b/src/RADIUS_proxy_server.cpp index 576c3779..8decc719 100644 --- a/src/RADIUS_proxy_server.cpp +++ b/src/RADIUS_proxy_server.cpp @@ -750,6 +750,10 @@ namespace OpenWifi { return Pool[0].Addr; } + if(Pool.empty()) { + std::cout << __LINE__ << std::endl; + } + std::cout << __LINE__ << std::endl; if (Pool[0].strategy == "weighted") { bool found = false; @@ -800,6 +804,7 @@ namespace OpenWifi { Pool[index].state += 1; return Pool[index].Addr; } else if (Pool[0].strategy == "random") { + std::cout << __LINE__ << std::endl; if (Pool.size() > 1) { std::cout << __LINE__ << std::endl; auto index = std::rand() % Pool.size();