From 4834c9e4da9b50989c1272febd1314b6cc469c1b Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 21 Jul 2016 12:34:19 +0200 Subject: [PATCH] credentials::get_name() fixed to return "" for empty credentials --- 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 3d8e824..a5e668f 100644 --- a/lib/EAPBase/src/Credentials.cpp +++ b/lib/EAPBase/src/Credentials.cpp @@ -97,7 +97,7 @@ bool eap::credentials::load(_In_ IXMLDOMNode *pConfigRoot, _Out_ EAP_ERROR **ppE tstring eap::credentials::get_name() const { - return get_identity(); + return !empty() ? get_identity() : _T(""); }