pull up r19757 from trunk
authorTom Yu <tlyu@mit.edu>
Fri, 31 Aug 2007 20:55:13 +0000 (20:55 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 31 Aug 2007 20:55:13 +0000 (20:55 +0000)
 r19757@cathode-dark-space:  tlyu | 2007-08-07 16:13:11 -0400
 ticket: 5629
 version_reported: 1.6.1
 target_version: 1.6.3
 tags: pullup

 Release mechtok_out in spnego_gss_init_sec_context.
 Reported by Markus Moeller.

ticket: 5629
version_fixed: 1.6.3

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@19902 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/spnego/spnego_mech.c

index 427bdee56a14ebc1c1fb7b2289d8d24ae77d0657..f2716e665ab69df1e120e26cda68291f633a258c 100644 (file)
@@ -835,6 +835,7 @@ cleanup:
                        ret = GSS_S_FAILURE;
                }
        }
+       gss_release_buffer(tmpmin, &mechtok_out);
        if (ret == GSS_S_COMPLETE) {
                /*
                 * Now, switch the output context to refer to the