summaryrefslogtreecommitdiff
path: root/sshconnect1.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect1.c')
-rw-r--r--sshconnect1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshconnect1.c b/sshconnect1.c
index 865d04e85..d42676676 100644
--- a/sshconnect1.c
+++ b/sshconnect1.c
@@ -13,7 +13,7 @@
13 */ 13 */
14 14
15#include "includes.h" 15#include "includes.h"
16RCSID("$OpenBSD: sshconnect1.c,v 1.30 2001/04/12 19:15:25 markus Exp $"); 16RCSID("$OpenBSD: sshconnect1.c,v 1.31 2001/04/17 08:14:01 markus Exp $");
17 17
18#include <openssl/bn.h> 18#include <openssl/bn.h>
19#include <openssl/evp.h> 19#include <openssl/evp.h>
@@ -999,7 +999,7 @@ ssh_userauth1(const char *local_user, const char *server_user, char *host,
999 if ((supported_authentications & (1 << SSH_AUTH_RHOSTS_RSA)) && 999 if ((supported_authentications & (1 << SSH_AUTH_RHOSTS_RSA)) &&
1000 options.rhosts_rsa_authentication) { 1000 options.rhosts_rsa_authentication) {
1001 for (i = 0; i < nkeys; i++) { 1001 for (i = 0; i < nkeys; i++) {
1002 if (keys[i]->type == KEY_RSA1 && 1002 if (keys[i] != NULL && keys[i]->type == KEY_RSA1 &&
1003 try_rhosts_rsa_authentication(local_user, keys[i])) 1003 try_rhosts_rsa_authentication(local_user, keys[i]))
1004 return; 1004 return;
1005 } 1005 }