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;