diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-17 18:08:15 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-17 18:08:15 +0000 |
commit | 9cb59afb9027f5449f2fc4e8d78cd62ca350355e (patch) | |
tree | 725d8d053f419e8bbc2c87823696da3fc30b1cfb /sshconnect1.c | |
parent | 459d1913bfd4a444d8a778bc819f026d2dc10ec0 (diff) | |
download | openssh-git-9cb59afb9027f5449f2fc4e8d78cd62ca350355e.tar.gz |
- markus@cvs.openbsd.org 2001/04/17 08:14:01
[sshconnect1.c]
check for key!=NULL, thanks to costa
Diffstat (limited to 'sshconnect1.c')
-rw-r--r-- | sshconnect1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sshconnect1.c b/sshconnect1.c index 865d04e8..d4267667 100644 --- a/sshconnect1.c +++ b/sshconnect1.c @@ -13,7 +13,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect1.c,v 1.30 2001/04/12 19:15:25 markus Exp $"); +RCSID("$OpenBSD: sshconnect1.c,v 1.31 2001/04/17 08:14:01 markus Exp $"); #include <openssl/bn.h> #include <openssl/evp.h> @@ -999,7 +999,7 @@ ssh_userauth1(const char *local_user, const char *server_user, char *host, if ((supported_authentications & (1 << SSH_AUTH_RHOSTS_RSA)) && options.rhosts_rsa_authentication) { for (i = 0; i < nkeys; i++) { - if (keys[i]->type == KEY_RSA1 && + if (keys[i] != NULL && keys[i]->type == KEY_RSA1 && try_rhosts_rsa_authentication(local_user, keys[i])) return; } |