6b85c3a Ticket #47905 - Bad manipulation of passwordhistory

Authored and Committed by nhosoi 9 years ago
    Ticket #47905 - Bad manipulation of passwordhistory
    
    Description: The patch was provided by German Parente (gparente@redhat.com)
    https://fedorahosted.org/389/ticket/47905#comment:6
    
    If a value of password policy attribute (e.g., passwordhistory) is
    accidentally deleted, it causes a null reference in pw_val2scheme.
    This patch checks whether val is NULL or not.  If the given val is
    NULL, pw_val2scheme returns NULL.
    
    https://fedorahosted.org/389/ticket/47905
    
    Reviewed by nhosoi@redhat.com.
    
    (cherry picked from commit 2c6e74adbea3c4799f30b0e3d679da9dd060ff58)
    (cherry picked from commit baa26c96e873916d4c02651b04de7ca2a578863d)
    (cherry picked from commit a9dee00b79016a51ebfed01c92267b751c5986de)
    (cherry picked from commit bf274554956196b4fc3f80f60c1b61de28a1b9d2)
    
        
file modified
+5 -2