1 --- hpn-ssh-hpn-18.4.2/auth-pam.c.orig
2 +++ hpn-ssh-hpn-18.4.2/auth-pam.c
3 @@ -1248,12 +1248,19 @@
4 sshpam_cred_established = 1;
9 + /* Server will fatal out when pam_setcred() failed. */
10 + fatal("PAM: pam_setcred(): %s", pam_strerror(sshpam_handle,
13 if (sshpam_authenticated)
14 fatal("PAM: pam_setcred(): %s",
15 pam_strerror(sshpam_handle, sshpam_err));
17 debug("PAM: pam_setcred(): %s",
18 pam_strerror(sshpam_handle, sshpam_err));
19 +#endif /* PAM_BUGFIX */
23 @@ -1353,10 +1360,16 @@
24 if (sshpam_err == PAM_SUCCESS)
25 sshpam_session_open = 1;
28 + /* Server will fatal out when pam_open_session() failed */
29 + fatal("PAM: pam_open_session(): %s",
30 + pam_strerror(sshpam_handle, sshpam_err));
32 sshpam_session_open = 0;
33 auth_restrict_session(ssh);
34 error("PAM: pam_open_session(): %s",
35 pam_strerror(sshpam_handle, sshpam_err));
36 +#endif /* PAM_BUGFIX */