diff options
author | 2007-03-20 03:56:12 +0000 | |
---|---|---|
committer | 2007-03-20 03:56:12 +0000 | |
commit | e522185b292696876a84554bb54c5d9ebfba0efb (patch) | |
tree | 927304197a9d9b8a380b8bcadc249c365f9d2d7d /usr.bin/ssh/clientloop.c | |
parent | remove some bogus *p tests from charles longeau (diff) | |
download | wireguard-openbsd-e522185b292696876a84554bb54c5d9ebfba0efb.tar.xz wireguard-openbsd-e522185b292696876a84554bb54c5d9ebfba0efb.zip |
remove some bogus *p tests from charles longeau
ok deraadt millert
Diffstat (limited to 'usr.bin/ssh/clientloop.c')
-rw-r--r-- | usr.bin/ssh/clientloop.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c index 7e91aaf3a69..775cb48b051 100644 --- a/usr.bin/ssh/clientloop.c +++ b/usr.bin/ssh/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 @@ -927,7 +927,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 */ @@ -974,9 +974,8 @@ process_cmdline(void) goto out; } - s++; - while (*s && isspace(*s)) - s++; + while (isspace(*++s)) + ; if (delete) { cancel_port = 0; |