* val_cred.c (krb5_gss_validate_cred): Free principal extracted
authorEzra Peisach <epeisach@mit.edu>
Sun, 7 Dec 1997 15:44:56 +0000 (15:44 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sun, 7 Dec 1997 15:44:56 +0000 (15:44 +0000)
from credential cache when finished.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10330 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/val_cred.c

index a641c392894948691cc443ba32b4bd612f794b42..20a6b1eba012f1d14a6ab6cd6d094a6a9d6a553d 100644 (file)
@@ -1,3 +1,8 @@
+Sun Dec  7 10:42:32 1997  Ezra Peisach  <epeisach@mit.edu>
+
+       * val_cred.c (krb5_gss_validate_cred): Free principal extracted
+               from credential cache when finished.
+
 Sat Nov 15 20:14:05 1997  Theodore Y. Ts'o  <tytso@mit.edu>
 
        * accept_sec_context.c (krb5_gss_accept_sec_context), 
index f7c4c94c9735ca4048f5da801c897e31bce82a60..785fe90bebde1c238526bfcca6b5297beceb5a2a 100644 (file)
@@ -56,6 +56,7 @@ krb5_gss_validate_cred(minor_status, cred_handle)
            *minor_status = KG_CCACHE_NOMATCH;
            return(GSS_S_DEFECTIVE_CREDENTIAL);
        }
+       (void)krb5_free_principal(context, princ);
     }
     *minor_status = 0;
     return GSS_S_COMPLETE;