]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix leak in kadm5_flush with LDAP KDB
authorTomas Kuthan <tkuthan@gmail.com>
Wed, 2 Apr 2014 15:48:04 +0000 (17:48 +0200)
committerGreg Hudson <ghudson@mit.edu>
Fri, 4 Apr 2014 17:59:36 +0000 (13:59 -0400)
commit372e4cb6f5d4a603e6e3157c7b5d354953836136
tree5c4516f65804e4c3120eca1f5526d3607321447d
parent346883c48f1b9e09b1af2cf73e3b96ee8f934072
Fix leak in kadm5_flush with LDAP KDB

Due to an inverted test in adb_policy_init, kadm5_flush calls
krb5_db_open twice.  With the DB2 KDB module, the second open is a
no-op, but with the LDAP module, a new DB handle is allocated and the
old one is leaked.

[ghudson@mit.edu: rewrote commit message]

ticket: 7897 (new)
target_version: 1.12.2
tags: pullup
src/lib/kadm5/srv/server_misc.c