From ae9c464fb34aa061205308035e31e9accd679615 Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Fri, 6 Oct 2023 09:27:23 -0700 Subject: [PATCH] https://telecominfraproject.atlassian.net/browse/WIFI-7831 Signed-off-by: stephb9959 --- src/RadiusEndpointUpdater.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/RadiusEndpointUpdater.h b/src/RadiusEndpointUpdater.h index 78c2dae..9083d70 100644 --- a/src/RadiusEndpointUpdater.h +++ b/src/RadiusEndpointUpdater.h @@ -19,9 +19,8 @@ namespace OpenWifi { std::istringstream os(Chain); std::string CurrentCert; bool InCert = false; - while(os.good()) { - std::string Line; - os >> Line; + std::string Line; + while(std::getline(os,Line)) { std::cout << Line << std::endl; if(Line=="-----BEGIN CERTIFICATE-----") { InCert = true;