Release mechtok_out in spnego_gss_init_sec_context.
authorTom Yu <tlyu@mit.edu>
Tue, 7 Aug 2007 20:13:11 +0000 (20:13 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 7 Aug 2007 20:13:11 +0000 (20:13 +0000)
Reported by Markus Moeller.

ticket: 5629
version_reported: 1.6.1
target_version: 1.6.3
tags: pullup

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

src/lib/gssapi/spnego/spnego_mech.c

index 0db0b5f92b372c8c1c2ef0c75240c66e42223691..347119b3d4b6593a3ab7bbadb0247e7ec85d53ff 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