Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpam/modules/pam_unix Clear the authorization token at...
details: https://anonhg.NetBSD.org/src/rev/692fb4ebf027
branches: trunk
changeset: 579541:692fb4ebf027
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 17 01:13:59 2005 +0000
description:
Clear the authorization token at the entry of each loop, so that
we get a chance to re-enter.
diffstat:
lib/libpam/modules/pam_unix/pam_unix.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r a0ef20c40049 -r 692fb4ebf027 lib/libpam/modules/pam_unix/pam_unix.c
--- a/lib/libpam/modules/pam_unix/pam_unix.c Thu Mar 17 01:07:51 2005 +0000
+++ b/lib/libpam/modules/pam_unix/pam_unix.c Thu Mar 17 01:13:59 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pam_unix.c,v 1.5 2005/02/26 02:57:32 thorpej Exp $ */
+/* $NetBSD: pam_unix.c,v 1.6 2005/03/17 01:13:59 christos Exp $ */
/*-
* Copyright 1998 Juniper Networks, Inc.
@@ -40,7 +40,7 @@
#ifdef __FreeBSD__
__FBSDID("$FreeBSD: src/lib/libpam/modules/pam_unix/pam_unix.c,v 1.49 2004/02/10 10:13:21 des Exp $");
#else
-__RCSID("$NetBSD: pam_unix.c,v 1.5 2005/02/26 02:57:32 thorpej Exp $");
+__RCSID("$NetBSD: pam_unix.c,v 1.6 2005/03/17 01:13:59 christos Exp $");
#endif
@@ -540,6 +540,7 @@
/* Get the new password. */
for (tries = 0;;) {
+ pam_set_item(pamh, PAM_AUTHTOK, NULL);
retval = pam_get_authtok(pamh, PAM_AUTHTOK, &new_pass,
NULL);
if (retval == PAM_TRY_AGAIN) {
Home |
Main Index |
Thread Index |
Old Index