Unregister error message key on library unload

Revision fcdd2de1 added the K5_KEY_GSS_KRB5_ERROR_MESSAGE key, and
registered it in the gssapi library initialization routine, but
did not unregister it in the libary finalization routine.
When the library is unloaded and reloaded in the same process,
this leads to an assertion failure, since we check that
destructors_set[keynum] is zero (no destructor set) when registering
a key in util/support/threads.c.
Unregister the key on library cleanup to resolve the error.

https://github.com/krb5/krb5/commit/4ab584c830024757cc628b1783dde6220a9fec6d
Author: Ben Kaduk <ka...@mit.edu>
Commit: 4ab584c830024757cc628b1783dde6220a9fec6d
Branch: master
 src/lib/gssapi/krb5/gssapi_krb5.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
_______________________________________________
kfwdev mailing list
kfwdev@mit.edu
http://mailman.mit.edu/mailman/listinfo/kfwdev

Reply via email to