summaryrefslogtreecommitdiff
path: root/src/clientiface.h
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-07-21 17:57:57 +0200
committerest31 <MTest31@outlook.com>2015-07-21 18:12:28 +0200
commita57d83b46af03313355d83924cfb53f4987cc48f (patch)
tree47f8c069940122001767f321ea7a4d96c29be783 /src/clientiface.h
parent403e6e6c9cf6be5e16e3f1f9bd7805fe9b3006cd (diff)
downloadminetest-a57d83b46af03313355d83924cfb53f4987cc48f.tar.gz
minetest-a57d83b46af03313355d83924cfb53f4987cc48f.tar.bz2
minetest-a57d83b46af03313355d83924cfb53f4987cc48f.zip
Ask auth handler to create auth when a default password is set
-> Fix server crash with protocol >=25 if a default password is set. -> Remove some useless and possibly confusion causing code for the TOCLIENT_FIRST_SRP packet handler
Diffstat (limited to 'src/clientiface.h')
-rw-r--r--src/clientiface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/clientiface.h b/src/clientiface.h
index ec6ba9e9e..f6c4294e2 100644
--- a/src/clientiface.h
+++ b/src/clientiface.h
@@ -232,6 +232,7 @@ public:
/* Authentication information */
std::string enc_pwd;
+ bool create_player_on_auth_success;
AuthMechanism chosen_mech;
void * auth_data;
u32 allowed_auth_mechs;
@@ -246,6 +247,7 @@ public:
peer_id(PEER_ID_INEXISTENT),
serialization_version(SER_FMT_VER_INVALID),
net_proto_version(0),
+ create_player_on_auth_success(false),
chosen_mech(AUTH_MECHANISM_NONE),
auth_data(NULL),
m_time_from_building(9999),