diff options
author | 2001-09-20 13:46:48 +0000 | |
---|---|---|
committer | 2001-09-20 13:46:48 +0000 | |
commit | e08253b12529d4486a20684738b49f3887978219 (patch) | |
tree | 71a409663e80648b87a4b8aa5dcfa8594867e08a | |
parent | Allow nesting of fault handlers by saving old onfault handler and (diff) | |
download | wireguard-openbsd-e08253b12529d4486a20684738b49f3887978219.tar.xz wireguard-openbsd-e08253b12529d4486a20684738b49f3887978219.zip |
key_read returns now -1 or 1
-rw-r--r-- | usr.bin/ssh/auth2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/auth2.c b/usr.bin/ssh/auth2.c index 812f5779a09..9f968c3dfe7 100644 --- a/usr.bin/ssh/auth2.c +++ b/usr.bin/ssh/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> @@ -645,7 +645,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); @@ -659,7 +659,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; |