DescriptionAndreas Schneider
2017-01-12 16:20:42 UTC
Description of problem:
The KDB version changed and MIT not providing a callback for a db_free_principal anymore.
See 03d34fcfa329fbc2f686a0b34e2731e37f483a34
This means to free a db_entry it calls krb5_db_free_principal(). This function calls free(k->e_data).
This means that e_data needs to be flat. Just one memory allocation.
struct ipadb_e_data has several pointer which are all allocated on it's own. ipadb_free_principal() isn't called anymore so the data allocated on ipadb_e_data is not freed!
(We have a bigger problem with Samba here.)