diff options
author | cortexcorepl <cortexcorepl-git@quitesimple.org> | 2014-04-26 18:12:46 +0200 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-05-12 02:33:02 -0400 |
commit | 187c04f7e218050c1a942ec07df7cbe1f42dc8ec (patch) | |
tree | 7c1cbc3e13cd205fcb1d4b319b9aeaa8ab300030 | |
parent | 5af678d2b979776e3512443ad8d3d06708941bb8 (diff) |
Add missing NULL check in cmd_lastlog
Closes #961
-rw-r--r-- | src/common/outbound.c | 2 |
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; |