- (djm) Fix segv from bad reordering in auth-pam.c

This commit is contained in:
Damien Miller 2003-06-02 11:04:39 +10:00
parent ae22174b21
commit 46337202d4
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@
/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */
#include "includes.h"
RCSID("$Id: auth-pam.c,v 1.62 2003/05/18 10:45:48 djm Exp $");
RCSID("$Id: auth-pam.c,v 1.63 2003/06/02 01:04:39 djm Exp $");
#ifdef USE_PAM
#include <security/pam_appl.h>
@ -299,9 +299,9 @@ sshpam_init(const char *user)
sshpam_handle = NULL;
return (-1);
}
debug("PAM: setting PAM_RHOST to \"%s\"", pam_rhost);
pam_rhost = get_remote_name_or_ip(utmp_len,
options.verify_reverse_mapping);
debug("PAM: setting PAM_RHOST to \"%s\"", pam_rhost);
sshpam_err = pam_set_item(sshpam_handle, PAM_RHOST, pam_rhost);
if (sshpam_err != PAM_SUCCESS) {
pam_end(sshpam_handle, sshpam_err);