зеркало из https://github.com/Azure/sonic-openssh.git
- markus@cvs.openbsd.org 2001/04/17 08:14:01
[sshconnect1.c] check for key!=NULL, thanks to costa
This commit is contained in:
Родитель
459d1913bf
Коммит
9cb59afb90
|
@ -6,6 +6,9 @@
|
|||
- deraadt@cvs.openbsd.org 2001/04/16 08:26:04
|
||||
[key.c]
|
||||
better safe than sorry in later mods; yongari@kt-is.co.kr
|
||||
- markus@cvs.openbsd.org 2001/04/17 08:14:01
|
||||
[sshconnect1.c]
|
||||
check for key!=NULL, thanks to costa
|
||||
|
||||
20010416
|
||||
- OpenBSD CVS Sync
|
||||
|
@ -5131,4 +5134,4 @@
|
|||
- Wrote replacements for strlcpy and mkdtemp
|
||||
- Released 1.0pre1
|
||||
|
||||
$Id: ChangeLog,v 1.1131 2001/04/17 18:06:14 mouring Exp $
|
||||
$Id: ChangeLog,v 1.1132 2001/04/17 18:08:15 mouring Exp $
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче