[krbdev.mit.edu #8704] git commit

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[krbdev.mit.edu #8704] git commit

Greg Hudson via RT-2

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.

(cherry picked from commit 396c736c0add2e13f4a9aaaefc9c86445b701953)

Author: Greg Hudson <[hidden email]>
Commit: e7e666c8ecd0f2e515a28dcc8eb6b67a3557243a
Branch: krb5-1.16
 src/plugins/preauth/otp/otp_state.c |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

krb5-bugs mailing list
[hidden email]