ab5a1c2 KRB5: Refactor cc_*_check_existing

1 file Authored by sgallagh 10 years ago, Committed by jhrozek 10 years ago,
    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.
    
        
file modified
+59 -61