summaryrefslogtreecommitdiff
path: root/auth-rh-rsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-rh-rsa.c')
-rw-r--r--auth-rh-rsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth-rh-rsa.c b/auth-rh-rsa.c
index 072e385ab..3070c9d41 100644
--- a/auth-rh-rsa.c
+++ b/auth-rh-rsa.c
@@ -13,7 +13,7 @@
13 */ 13 */
14 14
15#include "includes.h" 15#include "includes.h"
16RCSID("$OpenBSD: auth-rh-rsa.c,v 1.16 2000/09/07 21:13:36 markus Exp $"); 16RCSID("$OpenBSD: auth-rh-rsa.c,v 1.17 2000/10/03 18:03:03 markus Exp $");
17 17
18#include "packet.h" 18#include "packet.h"
19#include "ssh.h" 19#include "ssh.h"
@@ -39,9 +39,9 @@ auth_rhosts_rsa(struct passwd *pw, const char *client_user, RSA *client_host_key
39 HostStatus host_status; 39 HostStatus host_status;
40 Key *client_key, *found; 40 Key *client_key, *found;
41 41
42 debug("Trying rhosts with RSA host authentication for %.100s", client_user); 42 debug("Trying rhosts with RSA host authentication for client user %.100s", client_user);
43 43
44 if (client_host_key == NULL) 44 if (pw == NULL || client_host_key == NULL)
45 return 0; 45 return 0;
46 46
47 /* Check if we would accept it using rhosts authentication. */ 47 /* Check if we would accept it using rhosts authentication. */