]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix leash crash found in some build environments
authorBen Kaduk <kaduk@mit.edu>
Tue, 14 Apr 2015 19:33:20 +0000 (15:33 -0400)
committerBen Kaduk <kaduk@mit.edu>
Thu, 30 Apr 2015 14:47:33 +0000 (10:47 -0400)
commitebeb1e359fa10ea710d467ca3756ababd1276fa6
treedaf7b09debb1ba090eeebfb937d4fba84e2e9da8
parent531cbea82523ee82f3ad19028f36b4f88eaf7cdb
Fix leash crash found in some build environments

When freeing a credentials cache name obtained from
krb5_cc_get_full_name(), the code was using plain free()
instead of the matching krb5_free_string().  If these routines
are picked from different modules at runtime, the mismatch
will cause a crash in free(), so change to using the matched
deallocation function.

In order to use it in leash, it must be declared in Lglobals.h and
the function pointer symbol defined in Leash.cpp.
src/windows/leash/KrbListTickets.cpp
src/windows/leash/Leash.cpp
src/windows/leash/Lglobals.h