kadmin: Fix re-entrance in iterations
commit621deed047d63ad65c82bf8799902a7c7f07279d
authorNicolas Williams <nico@twosigma.com>
Wed, 23 Mar 2022 22:00:11 +0000 (23 17:00 -0500)
committerNicolas Williams <nico@twosigma.com>
Wed, 23 Mar 2022 23:03:38 +0000 (23 18:03 -0500)
tree01442bc92bf0e7986445e54a623898207a23672e
parentc667c28f61fd5dc8cc4c79672d53852e024a66c1
kadmin: Fix re-entrance in iterations

Any callback of kadm5_iter_principals() that wants to call other kadm5
functions (such as kadm5_get_principal()) needs to do so on a different
kadm5 handle than the one used for kadm5_iter_principals().
kadmin/cpw.c
kadmin/del.c
kadmin/ext.c
kadmin/get.c
kadmin/mod.c
tests/kdc/check-kadmin.in