summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/auth-pam.c b/auth-pam.c
index b8381646b..057164ad3 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -31,7 +31,7 @@
31 31
32/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */ 32/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */
33#include "includes.h" 33#include "includes.h"
34RCSID("$Id: auth-pam.c,v 1.63 2003/06/02 01:04:39 djm Exp $"); 34RCSID("$Id: auth-pam.c,v 1.64 2003/06/03 00:25:48 djm Exp $");
35 35
36#ifdef USE_PAM 36#ifdef USE_PAM
37#include <security/pam_appl.h> 37#include <security/pam_appl.h>
@@ -299,8 +299,7 @@ sshpam_init(const char *user)
299 sshpam_handle = NULL; 299 sshpam_handle = NULL;
300 return (-1); 300 return (-1);
301 } 301 }
302 pam_rhost = get_remote_name_or_ip(utmp_len, 302 pam_rhost = get_remote_name_or_ip(utmp_len, options.use_dns);
303 options.verify_reverse_mapping);
304 debug("PAM: setting PAM_RHOST to \"%s\"", pam_rhost); 303 debug("PAM: setting PAM_RHOST to \"%s\"", pam_rhost);
305 sshpam_err = pam_set_item(sshpam_handle, PAM_RHOST, pam_rhost); 304 sshpam_err = pam_set_item(sshpam_handle, PAM_RHOST, pam_rhost);
306 if (sshpam_err != PAM_SUCCESS) { 305 if (sshpam_err != PAM_SUCCESS) {