mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 08:14:24 +02:00
- (djm) Fix segv from bad reordering in auth-pam.c
This commit is contained in:
parent
ae22174b21
commit
46337202d4
@ -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 $ */
|
/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */
|
||||||
#include "includes.h"
|
#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
|
#ifdef USE_PAM
|
||||||
#include <security/pam_appl.h>
|
#include <security/pam_appl.h>
|
||||||
@ -299,9 +299,9 @@ sshpam_init(const char *user)
|
|||||||
sshpam_handle = NULL;
|
sshpam_handle = NULL;
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
debug("PAM: setting PAM_RHOST to \"%s\"", pam_rhost);
|
|
||||||
pam_rhost = get_remote_name_or_ip(utmp_len,
|
pam_rhost = get_remote_name_or_ip(utmp_len,
|
||||||
options.verify_reverse_mapping);
|
options.verify_reverse_mapping);
|
||||||
|
debug("PAM: setting PAM_RHOST to \"%s\"", pam_rhost);
|
||||||
sshpam_err = pam_set_item(sshpam_handle, PAM_RHOST, pam_rhost);
|
sshpam_err = pam_set_item(sshpam_handle, PAM_RHOST, pam_rhost);
|
||||||
if (sshpam_err != PAM_SUCCESS) {
|
if (sshpam_err != PAM_SUCCESS) {
|
||||||
pam_end(sshpam_handle, sshpam_err);
|
pam_end(sshpam_handle, sshpam_err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user