Function AddRecentPlayer would cause a crash if someone connected then dropped link before putting in a name.u

This commit is contained in:
Rumble 2013-11-13 17:01:57 -06:00
parent 55253bdf61
commit ecd268e4cd

View file

@ -4918,6 +4918,9 @@ bool AddRecentPlayer(char *chname, char *chhost, bool newplr, bool cpyplr)
time_t ct;
int max_vnum;
if (!chname || !*chname) // dropped connection with no name given
return FALSE;
ct = time(0); /* Grab the current time */
this = create_recent();