pam: modules/pam_unix/support.c - we love fixes that break things :/

baggins baggins at pld-linux.org
Tue Jul 12 18:31:14 CEST 2005


Author: baggins                      Date: Tue Jul 12 16:31:14 2005 GMT
Module: pam                           Tag: HEAD
---- Log message:
- we love fixes that break things :/

---- Files affected:
pam/modules/pam_unix:
   support.c (1.25 -> 1.26) 

---- Diffs:

================================================================
Index: pam/modules/pam_unix/support.c
diff -u pam/modules/pam_unix/support.c:1.25 pam/modules/pam_unix/support.c:1.26
--- pam/modules/pam_unix/support.c:1.25	Mon Jul 11 16:58:44 2005
+++ pam/modules/pam_unix/support.c	Tue Jul 12 18:31:09 2005
@@ -829,8 +829,10 @@
 				new->name = x_strdup(login_name);
 
 				/* any previous failures for this user ? */
-				pam_get_data(pamh, data_name, &void_old);
-				old = void_old;
+				if (pam_get_data(pamh, data_name, &void_old) != PAM_SUCCESS)
+					old = NULL;
+				else
+					old = void_old;
 
 				if (old != NULL) {
 					new->count = old->count + 1;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/pam/modules/pam_unix/support.c?r1=1.25&r2=1.26&f=u




More information about the pld-cvs-commit mailing list