aboutsummaryrefslogtreecommitdiff
path: root/src/clientiface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/clientiface.cpp')
-rw-r--r--src/clientiface.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/clientiface.cpp b/src/clientiface.cpp
index 8a93b84ac..bb740d9f3 100644
--- a/src/clientiface.cpp
+++ b/src/clientiface.cpp
@@ -454,8 +454,7 @@ void RemoteClient::notifyEvent(ClientStateEvent event)
{
case CSE_AuthAccept:
m_state = CS_AwaitingInit2;
- if ((chosen_mech == AUTH_MECHANISM_SRP)
- || (chosen_mech == AUTH_MECHANISM_LEGACY_PASSWORD))
+ if (chosen_mech == AUTH_MECHANISM_SRP)
srp_verifier_delete((SRPVerifier *) auth_data);
chosen_mech = AUTH_MECHANISM_NONE;
break;
@@ -464,8 +463,7 @@ void RemoteClient::notifyEvent(ClientStateEvent event)
break;
case CSE_SetDenied:
m_state = CS_Denied;
- if ((chosen_mech == AUTH_MECHANISM_SRP)
- || (chosen_mech == AUTH_MECHANISM_LEGACY_PASSWORD))
+ if (chosen_mech == AUTH_MECHANISM_SRP)
srp_verifier_delete((SRPVerifier *) auth_data);
chosen_mech = AUTH_MECHANISM_NONE;
break;
@@ -543,8 +541,7 @@ void RemoteClient::notifyEvent(ClientStateEvent event)
break;
case CSE_SudoSuccess:
m_state = CS_SudoMode;
- if ((chosen_mech == AUTH_MECHANISM_SRP)
- || (chosen_mech == AUTH_MECHANISM_LEGACY_PASSWORD))
+ if (chosen_mech == AUTH_MECHANISM_SRP)
srp_verifier_delete((SRPVerifier *) auth_data);
chosen_mech = AUTH_MECHANISM_NONE;
break;