]> andersk Git - openssh.git/blobdiff - sshconnect1.c
- markus@cvs.openbsd.org 2001/04/17 08:14:01
[openssh.git] / sshconnect1.c
index 865d04e85056bfec826ac04b6830abc3811c1d4a..d42676676bfdf5dd333e77d1d60cde9132f1ed74 100644 (file)
@@ -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;
                }
This page took 0.344408 seconds and 4 git commands to generate.