From 97963b2c51ad36885825a39169369818da4d0cd4 Mon Sep 17 00:00:00 2001 From: otto Date: Tue, 23 Aug 2016 16:21:45 +0000 Subject: [PATCH] fix previous, a condition was modified incorrectly; ok markus@ deraadt@ --- usr.bin/ssh/session.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c index d6250783c9d..038b7e41781 100644 --- a/usr.bin/ssh/session.c +++ b/usr.bin/ssh/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.284 2016/08/19 03:18:06 djm Exp $ */ +/* $OpenBSD: session.c,v 1.285 2016/08/23 16:21:45 otto Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland * All rights reserved @@ -505,8 +505,7 @@ do_exec_pty(Session *s, const char *command) close(ttyfd); /* record login, etc. similar to login(1) */ - if (command != NULL) - do_login(s, command); + do_login(s, command); /* * Do common processing for the child, such as execing -- 2.20.1