Fix minor bug in kg_save_name failure cleanup code
authorKen Raeburn <raeburn@mit.edu>
Thu, 15 May 2008 23:03:54 +0000 (23:03 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 15 May 2008 23:03:54 +0000 (23:03 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20318 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/inq_context.c

index 28c49f72cd19a5424488da711a782ae0bf799c46..8f46a95ad89839698e9f916af7f3268c8bc86ddf 100644 (file)
@@ -101,7 +101,7 @@ krb5_gss_inquire_context(minor_status, context_handle, initiator_name,
       if (! kg_save_name((gss_name_t) accept)) {
         krb5_free_principal(context, accept);
         if (init) {
-           kg_delete_name((gss_name_t) accept);
+           kg_delete_name((gss_name_t) init);
            krb5_free_principal(context, init);
         }
         *minor_status = (OM_uint32) G_VALIDATE_FAILED;