From 187c04f7e218050c1a942ec07df7cbe1f42dc8ec Mon Sep 17 00:00:00 2001 From: cortexcorepl Date: Sat, 26 Apr 2014 18:12:46 +0200 Subject: Add missing NULL check in cmd_lastlog Closes #961 --- src/common/outbound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit 1.4.1