]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix leak on error in kadm5 randkey handling
authorGreg Hudson <ghudson@mit.edu>
Thu, 25 Oct 2018 15:56:58 +0000 (11:56 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 26 Oct 2018 14:23:39 +0000 (10:23 -0400)
commitc4bdb3a1c890149a472ed98a94cf85316b143265
tree238cf9a4580571447e5005b5ea1a467ae85d0a95
parent3d149aed7c19e885b70fa05a251800c0acbff6c4
Fix leak on error in kadm5 randkey handling

An attempt to change the kadmin/history key with the -keepold flag
would leak the KDB entry and keysalt tuple as it returned an error.
Use the cleanup handler instead of returning directly.  Reported by
Bean Zhang.

ticket: 8759
tags: pullup
target_version: 1.16-next
target_version: 1.15-next
src/lib/kadm5/srv/svr_principal.c