]> andersk Git - openssh.git/commitdiff
- tedu@cvs.openbsd.org 2007/03/20 03:56:12
authordtucker <dtucker>
Wed, 21 Mar 2007 09:46:03 +0000 (09:46 +0000)
committerdtucker <dtucker>
Wed, 21 Mar 2007 09:46:03 +0000 (09:46 +0000)
     [readconf.c clientloop.c]
     remove some bogus *p tests from charles longeau
     ok deraadt millert

ChangeLog
clientloop.c
readconf.c

index 246a0ea49294efad61286d34512ee0081a8009bb..a8af05a4d7bb6dfdc9023336d811e0f9be4b0477 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
      the next key will expire when scanning for expired keys.  Set the select
      timeout to whichever of these two things happens next.  With djm@, with &
      ok deraadt@ markus@
+   - 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
 
 20070313
  - (dtucker) [entropy.c scard-opensc.c ssh-rand-helper.c] Bug #1294: include
index c7362caa8ccc3e36e6ef3222dc12025c2916c544..1aeb412a9754ceb35a07c78fa759ac3432bf9ea0 100644 (file)
@@ -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;
index 2485146a0025dfeeb212428172ab907afc1388d7..d57d4551dc5bc2203a0944e307b8f90acf9c50fa 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: readconf.c,v 1.161 2007/01/21 01:45:35 stevesk Exp $ */
+/* $OpenBSD: readconf.c,v 1.162 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
@@ -1224,7 +1224,7 @@ parse_forward(Forward *fwd, const char *fwdspec)
        cp = p = xstrdup(fwdspec);
 
        /* skip leading spaces */
-       while (*cp && isspace(*cp))
+       while (isspace(*cp))
                cp++;
 
        for (i = 0; i < 4; ++i)
This page took 0.372411 seconds and 5 git commands to generate.