Quick fix for LJ's password fix: don't check if password is set until we've confirmed that the receiving player is the server!

This commit is contained in:
Monster Iestyn 2018-08-05 20:17:30 +01:00
parent 485d990949
commit 8d622ff6f8

View file

@ -2730,15 +2730,15 @@ static void Got_Login(UINT8 **cp, INT32 playernum)
READMEM(*cp, sentmd5, 16); READMEM(*cp, sentmd5, 16);
if (client)
return;
if (!adminpasswordset) if (!adminpasswordset)
{ {
CONS_Printf(M_GetText("Password from %s failed (no password set).\n"), player_names[playernum]); CONS_Printf(M_GetText("Password from %s failed (no password set).\n"), player_names[playernum]);
return; return;
} }
if (client)
return;
// Do the final pass to compare with the sent md5 // Do the final pass to compare with the sent md5
D_MD5PasswordPass(adminpassmd5, 16, va("PNUM%02d", playernum), &finalmd5); D_MD5PasswordPass(adminpassmd5, 16, va("PNUM%02d", playernum), &finalmd5);