summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/auth2.c b/auth2.c
index 3d2dcdc6c..272683bb2 100644
--- a/auth2.c
+++ b/auth2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth2.c,v 1.64 2001/06/23 00:20:58 markus Exp $"); 26RCSID("$OpenBSD: auth2.c,v 1.65 2001/06/23 03:04:43 markus Exp $");
27 27
28#include <openssl/evp.h> 28#include <openssl/evp.h>
29 29
@@ -791,14 +791,14 @@ hostbased_key_allowed(struct passwd *pw, const char *cuser, char *chost,
791 791
792 host_status = check_key_in_hostfiles(pw, key, lookup, 792 host_status = check_key_in_hostfiles(pw, key, lookup,
793 _PATH_SSH_SYSTEM_HOSTFILE, 793 _PATH_SSH_SYSTEM_HOSTFILE,
794 options.ignore_user_known_hosts ? _PATH_SSH_USER_HOSTFILE : NULL); 794 options.ignore_user_known_hosts ? NULL : _PATH_SSH_USER_HOSTFILE);
795 795
796 /* backward compat if no key has been found. */ 796 /* backward compat if no key has been found. */
797 if (host_status == HOST_NEW) 797 if (host_status == HOST_NEW)
798 host_status = check_key_in_hostfiles(pw, key, lookup, 798 host_status = check_key_in_hostfiles(pw, key, lookup,
799 _PATH_SSH_SYSTEM_HOSTFILE2, 799 _PATH_SSH_SYSTEM_HOSTFILE2,
800 options.ignore_user_known_hosts ? _PATH_SSH_USER_HOSTFILE2 : 800 options.ignore_user_known_hosts ? NULL :
801 NULL); 801 _PATH_SSH_USER_HOSTFILE2);
802 802
803 return (host_status == HOST_OK); 803 return (host_status == HOST_OK);
804} 804}