]> granicus.if.org Git - linux-pam/commit
Cleanups of pam_pwhistory code. Make opasswd entry parsing more robust.
authorTomas Mraz <tmraz@fedoraproject.org>
Wed, 15 Jun 2011 18:48:59 +0000 (20:48 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Wed, 15 Jun 2011 18:52:26 +0000 (20:52 +0200)
commitff7c230341fc4bd2266b9ddaf39d83683f12c040
tree7992e99be138233c33347c4a90745069e902adfe
parent62748f7df90225dc0635944ef59e6e4754c302c0
Cleanups of pam_pwhistory code. Make opasswd entry parsing more robust.

        * modules/pam_pwhistory/opasswd.c (check_old_password): Do not
        needlessly call strdupa().
        (save_old_password): Avoid memleaks in error paths. Avoid memleak of
        buf. Make the opasswd entry parsing more robust.
        * modules/pam_pwhistory/pam_pwhistory.8.xml: Document the
        special meaning of remember=0.
ChangeLog
modules/pam_pwhistory/opasswd.c
modules/pam_pwhistory/pam_pwhistory.8.xml