From a57d83b46af03313355d83924cfb53f4987cc48f Mon Sep 17 00:00:00 2001 From: est31 Date: Tue, 21 Jul 2015 17:57:57 +0200 Subject: 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 --- src/clientiface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/clientiface.h') 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), -- cgit v1.2.3