[krbdev.mit.edu #7353] SVN Commit

Tom Yu via RT rt-comment at krbdev.mit.edu
Wed Sep 12 15:56:25 EDT 2012


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)

https://github.com/krb5/krb5/commit/1d0c691e59f89df68413a6a41b951cfda88005e8
Author: Ben Kaduk <kaduk at mit.edu>
Committer: Tom Yu <tlyu at mit.edu>
Commit: 1d0c691e59f89df68413a6a41b951cfda88005e8
Branch: krb5-1.10
 src/lib/gssapi/krb5/gssapi_krb5.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)



More information about the krb5-bugs mailing list