Add missing NULL check in cmd_lastlog

Closes #961
This commit is contained in:
cortexcorepl 2014-04-26 18:12:46 +02:00 committed by TingPing
parent 5af678d2b9
commit 187c04f7e2
1 changed files with 1 additions and 1 deletions

View File

@ -2486,7 +2486,7 @@ cmd_lastlog (struct session *sess, char *tbuf, char *word[], char *word_eol[])
}
j++;
}
if (*word_eol[j])
if (word_eol[j] != NULL && *word_eol[j])
{
lastlog (sess, word_eol[j], flags);
return TRUE;