pam: modules/pam_unix/support.c - simplify things

baggins baggins at pld-linux.org
Tue Jul 12 18:36:02 CEST 2005


Author: baggins                      Date: Tue Jul 12 16:36:02 2005 GMT
Module: pam                           Tag: HEAD
---- Log message:
- simplify things

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

---- Diffs:

================================================================
Index: pam/modules/pam_unix/support.c
diff -u pam/modules/pam_unix/support.c:1.26 pam/modules/pam_unix/support.c:1.27
--- pam/modules/pam_unix/support.c:1.26	Tue Jul 12 18:31:09 2005
+++ pam/modules/pam_unix/support.c	Tue Jul 12 18:35:57 2005
@@ -829,9 +829,7 @@
 				new->name = x_strdup(login_name);
 
 				/* any previous failures for this user ? */
-				if (pam_get_data(pamh, data_name, &void_old) != PAM_SUCCESS)
-					old = NULL;
-				else
+				if (pam_get_data(pamh, data_name, &void_old) == PAM_SUCCESS)
 					old = void_old;
 
 				if (old != NULL) {
================================================================

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




More information about the pld-cvs-commit mailing list