summaryrefslogtreecommitdiff
path: root/sshconnect1.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect1.c')
-rw-r--r--sshconnect1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sshconnect1.c b/sshconnect1.c
index c5ff7213a..3d45ac5a2 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.27 2001/02/15 23:19:59 markus Exp $"); 16RCSID("$OpenBSD: sshconnect1.c,v 1.28 2001/03/08 21:42:33 markus Exp $");
17 17
18#include <openssl/bn.h> 18#include <openssl/bn.h>
19#include <openssl/evp.h> 19#include <openssl/evp.h>
@@ -1017,7 +1017,8 @@ ssh_userauth(
1017 1017
1018 /* Try RSA authentication for each identity. */ 1018 /* Try RSA authentication for each identity. */
1019 for (i = 0; i < options.num_identity_files; i++) 1019 for (i = 0; i < options.num_identity_files; i++)
1020 if (options.identity_files_type[i] == KEY_RSA1 && 1020 if (options.identity_keys[i] != NULL &&
1021 options.identity_keys[i]->type == KEY_RSA1 &&
1021 try_rsa_authentication(options.identity_files[i])) 1022 try_rsa_authentication(options.identity_files[i]))
1022 return; 1023 return;
1023 } 1024 }