]> git.ipfire.org Git - thirdparty/krb5.git/commit
Unregister error message key on library unload
authorBen Kaduk <kaduk@mit.edu>
Wed, 12 Sep 2012 15:35:04 +0000 (11:35 -0400)
committerTom Yu <tlyu@mit.edu>
Wed, 12 Sep 2012 19:36:41 +0000 (15:36 -0400)
commit1d0c691e59f89df68413a6a41b951cfda88005e8
tree567fe6d447dd0fcfa0a2bf489071bdc747aa6a97
parentd65edd12642e67b1cf03bf681903157bdc31de9a
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.

(cherry picked from commit 4ab584c830024757cc628b1783dde6220a9fec6d)

ticket: 7353
version_fixed: 1.10.4
status: resolved
src/lib/gssapi/krb5/gssapi_krb5.c