method: Cleanup get_result()

fIsSuccess is already set to TRUE by module::get_result().

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2020-01-29 15:42:13 +01:00
parent b3291ff8b1
commit a2a4d75745
5 changed files with 5 additions and 15 deletions

View File

@@ -199,10 +199,8 @@ void eap::method_eaphost::get_result(
if (reason == EapPeerMethodResultSuccess)
m_cfg.m_last_status = config_method::status_t::success;
// Always ask EAP host to save the connection data. And it will save it *only* when we report "success".
// Don't worry. EapHost is well aware of failed authentication condition.
// Ask EAP host to save the configuration (connection data).
pResult->fSaveConnectionData = TRUE;
pResult->fIsSuccess = TRUE;
} else if (error)
throw eap_runtime_error(*error , __FUNCTION__ " EapHostPeerGetResult failed.");
else