Add missing NULL check in cmd_lastlog

Closes #961
This commit is contained in:
cortexcorepl
2014-05-12 02:33:02 -04:00
committed by TingPing
parent 5af678d2b9
commit 187c04f7e2
+1 -1
View File
@@ -2486,7 +2486,7 @@ cmd_lastlog (struct session *sess, char *tbuf, char *word[], char *word_eol[])
} }
j++; j++;
} }
if (*word_eol[j]) if (word_eol[j] != NULL && *word_eol[j])
{ {
lastlog (sess, word_eol[j], flags); lastlog (sess, word_eol[j], flags);
return TRUE; return TRUE;