fix previous, a condition was modified incorrectly; ok markus@ deraadt@
authorotto <otto@openbsd.org>
Tue, 23 Aug 2016 16:21:45 +0000 (16:21 +0000)
committerotto <otto@openbsd.org>
Tue, 23 Aug 2016 16:21:45 +0000 (16:21 +0000)
usr.bin/ssh/session.c

index d625078..038b7e4 100644 (file)
@@ -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 <ylo@cs.hut.fi>, 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