diff options
author | sfan5 <sfan5@live.de> | 2022-04-27 19:32:51 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-04-28 19:55:36 +0200 |
commit | 00f71c3b9d35e1cdd5aa62491a46068358aa8b2a (patch) | |
tree | 199e4113740b9c6b0bb5829d72bf30d7fa5f8997 /src/clientiface.cpp | |
parent | 3d2bf8fb021ea839944830e212789532ba3f0370 (diff) | |
download | minetest-00f71c3b9d35e1cdd5aa62491a46068358aa8b2a.tar.gz minetest-00f71c3b9d35e1cdd5aa62491a46068358aa8b2a.tar.bz2 minetest-00f71c3b9d35e1cdd5aa62491a46068358aa8b2a.zip |
Fix password changing getting stuck if wrong password is entered once
Diffstat (limited to 'src/clientiface.cpp')
-rw-r--r-- | src/clientiface.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/clientiface.cpp b/src/clientiface.cpp index a1c3e1187..a4bfb8242 100644 --- a/src/clientiface.cpp +++ b/src/clientiface.cpp @@ -596,6 +596,15 @@ void RemoteClient::notifyEvent(ClientStateEvent event) } } +void RemoteClient::resetChosenMech() +{ + if (chosen_mech == AUTH_MECHANISM_SRP) { + srp_verifier_delete((SRPVerifier *) auth_data); + auth_data = nullptr; + } + chosen_mech = AUTH_MECHANISM_NONE; +} + u64 RemoteClient::uptime() const { return porting::getTimeS() - m_connection_time; |