679e7b0 Ticket #48228 - wrong password check if passwordInHistory is decreased.

Authored and Committed by nhosoi 3 years ago
    Ticket #48228 - wrong password check if passwordInHistory is decreased.
    
    Description: Regression was added by this commit:
      commit 1a119125856006543aae0520b5800a8b52c3b049
      Ticket #48228 - wrong password check if passwordInHistory is decreased.
    Compare function pw_history_cmp used in qsort did not check the correct
    address for the timestamp string, which made qsort return the password
    history in the wrong order.
    
    https://fedorahosted.org/389/ticket/48228
    
    Reviewed by rmeggins@redhat.com (Thank you, Rich!)
    
    (cherry picked from commit 391acfcf9a67b9b27ebbd98d1dfe30ef54a027c4)
    (cherry picked from commit 096b386663c949136095def77a7fb12eee64e542)
    
        
file modified
+8 -13