diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2013-08-15 11:40:59 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-08-22 19:29:08 +0200 |
commit | 18dff5d8bb4081af4c94339db9342b8a5b7d121e (patch) | |
tree | 061ce379e06245dcae2e3a54d12b3971109aaab0 /BUILD.txt | |
parent | 8340ca480e0fe823441633720d67efc9e4a4bc64 (diff) | |
download | sssd-18dff5d8bb4081af4c94339db9342b8a5b7d121e.tar.gz sssd-18dff5d8bb4081af4c94339db9342b8a5b7d121e.tar.bz2 sssd-18dff5d8bb4081af4c94339db9342b8a5b7d121e.zip |
KRB5: Refactor cc_*_check_existing
There was duplicated code in cc_file_check_existing() and in
cc_dir_check_existing(). I pulled them into the same function.
There are two changes made to the original code here:
1) Fixes a use-after-free bug in cc_file_check_existing(). In the
original code, we called krb5_free_context() and then used that
context immediately after that in krb5_cc_close(). This patch
corrects the ordering
2) The krb5_cc_resolve() call handles KRB5_FCC_NOFILE for all
cache types. Previously, this was only handled for DIR caches.
Diffstat (limited to 'BUILD.txt')
0 files changed, 0 insertions, 0 deletions