From ecd268e4cd1694b792f7b4098a38cbc506d8c32e Mon Sep 17 00:00:00 2001 From: Rumble Date: Wed, 13 Nov 2013 17:01:57 -0600 Subject: [PATCH] Function AddRecentPlayer would cause a crash if someone connected then dropped link before putting in a name.u --- src/act.wizard.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/act.wizard.c b/src/act.wizard.c index 629ee96..a301664 100644 --- a/src/act.wizard.c +++ b/src/act.wizard.c @@ -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();