summaryrefslogtreecommitdiffstats
path: root/clientloop.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2007-03-21 20:46:03 +1100
committerDarren Tucker <dtucker@zip.com.au>2007-03-21 20:46:03 +1100
commit03b1cdbb44c998d933cf804decff92f6eafa6e65 (patch)
treeabf356e5d56c98312670ad52601d0b9e0f92c69e /clientloop.c
parent2812dc92859ab0dc095d38494d651bd83f3c1dc5 (diff)
- tedu@cvs.openbsd.org 2007/03/20 03:56:12
[readconf.c clientloop.c] remove some bogus *p tests from charles longeau ok deraadt millert
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/clientloop.c b/clientloop.c
index c7362caa..1aeb412a 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.178 2007/02/20 10:25:14 djm Exp $ */
+/* $OpenBSD: clientloop.c,v 1.179 2007/03/20 03:56:12 tedu Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -935,7 +935,7 @@ process_cmdline(void)
cmd = s = read_passphrase("\r\nssh> ", RP_ECHO);
if (s == NULL)
goto out;
- while (*s && isspace(*s))
+ while (isspace(*s))
s++;
if (*s == '-')
s++; /* Skip cmdline '-', if any */
@@ -982,9 +982,8 @@ process_cmdline(void)
goto out;
}
- s++;
- while (*s && isspace(*s))
- s++;
+ while (isspace(*++s))
+ ;
if (delete) {
cancel_port = 0;