From 8ce7154a779c4bfdca6ab3b2124d2c707c7632af Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Sun, 28 Aug 2016 15:46:30 +0200 Subject: [PATCH] Loading credentials from XML allows absence and assumes blank identity in this case now --- lib/EAPBase/src/Credentials.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/EAPBase/src/Credentials.cpp b/lib/EAPBase/src/Credentials.cpp index ed9cc9a..82e6a6a 100644 --- a/lib/EAPBase/src/Credentials.cpp +++ b/lib/EAPBase/src/Credentials.cpp @@ -109,7 +109,7 @@ void eap::credentials::load(_In_ IXMLDOMNode *pConfigRoot) std::wstring xpath(eapxml::get_xpath(pConfigRoot)); if (FAILED(hr = eapxml::get_element_value(pConfigRoot, bstr(L"eap-metadata:UserName"), m_identity))) - throw com_runtime_error(hr, __FUNCTION__ " Error reading element."); + m_identity.clear(); m_module.log_config((xpath + L"/UserName").c_str(), m_identity.c_str()); }