summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
authorcortexcorepl <cortexcorepl-git@quitesimple.org>2014-04-26 18:12:46 +0200
committerTingPing <tingping@tingping.se>2014-05-12 02:33:02 -0400
commit187c04f7e218050c1a942ec07df7cbe1f42dc8ec (patch)
tree7c1cbc3e13cd205fcb1d4b319b9aeaa8ab300030 /src/common/outbound.c
parent5af678d2b979776e3512443ad8d3d06708941bb8 (diff)
Add missing NULL check in cmd_lastlog
Closes #961
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r--src/common/outbound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index db6b3d5b..5dd0d05f 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -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;