mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 10:40:13 +01:00
Function AddRecentPlayer would cause a crash if someone connected then dropped link before putting in a name.u
This commit is contained in:
parent
55253bdf61
commit
ecd268e4cd
1 changed files with 3 additions and 0 deletions
|
|
@ -4918,6 +4918,9 @@ bool AddRecentPlayer(char *chname, char *chhost, bool newplr, bool cpyplr)
|
||||||
time_t ct;
|
time_t ct;
|
||||||
int max_vnum;
|
int max_vnum;
|
||||||
|
|
||||||
|
if (!chname || !*chname) // dropped connection with no name given
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
ct = time(0); /* Grab the current time */
|
ct = time(0); /* Grab the current time */
|
||||||
|
|
||||||
this = create_recent();
|
this = create_recent();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue