]> andersk Git - openssh.git/commitdiff
- markus@cvs.openbsd.org 2001/09/20 13:46:48
authormouring <mouring>
Thu, 20 Sep 2001 23:11:26 +0000 (23:11 +0000)
committermouring <mouring>
Thu, 20 Sep 2001 23:11:26 +0000 (23:11 +0000)
     [auth2.c]
     key_read returns now -1 or 1

ChangeLog
auth2.c

index 41be24391e9f4d1778aa6afd1ac25bff890d2c51..0ebf9ca03b68c7f7fda9cb7213af3ec5eb2e3852 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@
    - stevesk@cvs.openbsd.org 2001/09/20 00:15:54
      [sshd.8]
      fix ClientAliveCountMax
+   - markus@cvs.openbsd.org 2001/09/20 13:46:48
+     [auth2.c]
+     key_read returns now -1 or 1
 
 20010919
  - (bal) OpenBSD Sync
diff --git a/auth2.c b/auth2.c
index a52c9e2899d96d0105acfa63a38935556533c50e..39322dc69d00123f15205f195e09c7b4a759a981 100644 (file)
--- a/auth2.c
+++ b/auth2.c
@@ -23,7 +23,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: auth2.c,v 1.69 2001/07/23 18:14:58 stevesk Exp $");
+RCSID("$OpenBSD: auth2.c,v 1.70 2001/09/20 13:46:48 markus Exp $");
 
 #include <openssl/evp.h>
 
@@ -698,7 +698,7 @@ user_key_allowed2(struct passwd *pw, Key *key, char *file)
                if (!*cp || *cp == '\n' || *cp == '#')
                        continue;
 
-               if (key_read(found, &cp) == -1) {
+               if (key_read(found, &cp) != 1) {
                        /* no key?  check if there are options for this key */
                        int quoted = 0;
                        debug2("user_key_allowed: check options: '%s'", cp);
@@ -712,7 +712,7 @@ user_key_allowed2(struct passwd *pw, Key *key, char *file)
                        /* Skip remaining whitespace. */
                        for (; *cp == ' ' || *cp == '\t'; cp++)
                                ;
-                       if (key_read(found, &cp) == -1) {
+                       if (key_read(found, &cp) != 1) {
                                debug2("user_key_allowed: advance: '%s'", cp);
                                /* still no key?  advance to next line*/
                                continue;
This page took 1.005899 seconds and 5 git commands to generate.