Code clean-up
This commit is contained in:
@@ -292,7 +292,7 @@ wstring eap::config_method_ttls::get_public_identity(const credentials_ttls &cre
|
||||
} else if (m_anonymous_identity.compare(L"@") == 0) {
|
||||
// Strip username part from identity (RFC 4822).
|
||||
wstring identity(std::move(cred.get_identity()));
|
||||
wstring::size_type offset = identity.find(L'@');
|
||||
auto offset = identity.find(L'@');
|
||||
if (offset != wstring::npos) identity.erase(0, offset);
|
||||
return identity;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user