]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix OTP secret file leak and whitespace removal 802/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 26 Jun 2018 16:47:10 +0000 (12:47 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 28 Jun 2018 04:38:11 +0000 (00:38 -0400)
commit396c736c0add2e13f4a9aaaefc9c86445b701953
treeeddc662ba87928aff33126b4a26ecb0805ceef3c
parentce06d9b9fcac2443f630574cf5012408f2da3a17
Fix OTP secret file leak and whitespace removal

In read_secret_file() in the OTP kdcpreauth module, add a cleanup
label and free filename on exit.  Also fix the whitespace stripping
code to correctly find the end offset, and use size_t rather than int
offsets.  The leak was reported by Bean Zhang.

ticket: 8704
tags: pullup
target_version: 1.16-next
target_version: 1.15-next
src/plugins/preauth/otp/otp_state.c