summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-03-21 12:16:24 +1100
committerDamien Miller <djm@mindrot.org>2001-03-21 12:16:24 +1100
commit2e9adb27e9f36599f160c5dd0b426d95b52237e0 (patch)
treee8223a85ad067cd5edb10e71b0c42a3060e5c45e
parent883631b73a038e6c48824492c792fbec591a429e (diff)
- (djm) Make sure pam_retval is initialised on call to pam_end. Patch
from Solar Designer <solar@openwall.com>
-rw-r--r--ChangeLog4
-rw-r--r--auth-pam.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 5fed6e4da..9e05e2fec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
120010321 120010321
2 - (djm) Fix ttyname breakage for AIX and Tru64. Patch from Steve 2 - (djm) Fix ttyname breakage for AIX and Tru64. Patch from Steve
3 VanDevender <stevev@darkwing.uoregon.edu> 3 VanDevender <stevev@darkwing.uoregon.edu>
4 - (djm) Make sure pam_retval is initialised on call to pam_end. Patch
5 from Solar Designer <solar@openwall.com>
4 6
520010320 720010320
6 - (bal) glob.c update to added GLOB_LIMITS (OpenBSD CVS). 8 - (bal) glob.c update to added GLOB_LIMITS (OpenBSD CVS).
@@ -4649,4 +4651,4 @@
4649 - Wrote replacements for strlcpy and mkdtemp 4651 - Wrote replacements for strlcpy and mkdtemp
4650 - Released 1.0pre1 4652 - Released 1.0pre1
4651 4653
4652$Id: ChangeLog,v 1.994 2001/03/21 00:11:57 djm Exp $ 4654$Id: ChangeLog,v 1.995 2001/03/21 01:16:24 djm Exp $
diff --git a/auth-pam.c b/auth-pam.c
index ce4984532..dfaaacdc7 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -33,7 +33,7 @@
33#include "canohost.h" 33#include "canohost.h"
34#include "readpass.h" 34#include "readpass.h"
35 35
36RCSID("$Id: auth-pam.c,v 1.31 2001/02/28 22:18:58 djm Exp $"); 36RCSID("$Id: auth-pam.c,v 1.32 2001/03/21 01:16:25 djm Exp $");
37 37
38#define NEW_AUTHTOK_MSG \ 38#define NEW_AUTHTOK_MSG \
39 "Warning: Your password has expired, please change it now" 39 "Warning: Your password has expired, please change it now"
@@ -172,7 +172,7 @@ static int do_pam_conversation(int num_msg, const struct pam_message **msg,
172/* Called at exit to cleanly shutdown PAM */ 172/* Called at exit to cleanly shutdown PAM */
173void do_pam_cleanup_proc(void *context) 173void do_pam_cleanup_proc(void *context)
174{ 174{
175 int pam_retval; 175 int pam_retval = PAM_SUCCESS;
176 176
177 if (__pamh && session_opened) { 177 if (__pamh && session_opened) {
178 pam_retval = pam_close_session(__pamh, 0); 178 pam_retval = pam_close_session(__pamh, 0);