aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-07-27 07:44:48 +0200
committerest31 <MTest31@outlook.com>2015-07-27 08:15:39 +0200
commitf336d3ffb657d2fcc72d06c28642c1b418e8dec4 (patch)
tree8c5e75015399b64b96b63ebc8e03f98c1a341460 /src/client.cpp
parentc30a2d68541b6ff451d92709478b4e37cac86447 (diff)
downloadminetest-f336d3ffb657d2fcc72d06c28642c1b418e8dec4.tar.gz
minetest-f336d3ffb657d2fcc72d06c28642c1b418e8dec4.tar.bz2
minetest-f336d3ffb657d2fcc72d06c28642c1b418e8dec4.zip
Fix srp.cpp:815 leak
Thanks @Zeno-
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 74072d9d7..63f720f04 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -974,6 +974,7 @@ void Client::deleteAuthData()
case AUTH_MECHANISM_NONE:
break;
}
+ m_chosen_auth_mech = AUTH_MECHANISM_NONE;
}
@@ -1060,7 +1061,6 @@ void Client::startAuth(AuthMechanism chosen_auth_mechanism)
NetworkPacket resp_pkt(TOSERVER_SRP_BYTES_A, 0);
resp_pkt << std::string(bytes_A, len_A) << based_on;
- free(bytes_A);
Send(&resp_pkt);
break;
}