[krbdev.mit.edu #8759] Resource leak in kadm5_randkey_principal_3()

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

[krbdev.mit.edu #8759] Resource leak in kadm5_randkey_principal_3()

Greg Hudson via RT-2
Hi Team,

In kadm5_randkey_principal_3() of krb5-1.16.1/src/lib/kadm5/srv/svr_principal.c,
when call apply_keysalt_policy(), it will allocate memory for pointer new_ks_tuple,
but later if keepold is not zero, it just return KADM5_PROTECT_PRINCIPAL without free new_ks_tuple.

Could someone help to take a look?


krb5-bugs mailing list
[hidden email]