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:
@@ -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
|
||||
|
Reference in New Issue
Block a user