]> err.no Git - systemd/commit
pam: do not leak file descriptor if flock fails
authorAndrey Borzenkov <arvidjaar@gmail.com>
Thu, 10 Mar 2011 14:39:02 +0000 (17:39 +0300)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Mar 2011 19:48:58 +0000 (20:48 +0100)
commit90102b22ba0a9a6aa8ff1b9d32349e100902a8d7
treed0e043dd677d3750b91aaaa4dd6d9a2e630429d4
parent756a8d17bb106f9624736843377e7831b195fac7
pam: do not leak file descriptor if flock fails

If flock fails, fd is not returned to caller so it cannot clean up.
src/pam-module.c