plug leak in previous commit
authorLuke Howard <lukeh@padl.com>
Tue, 15 Mar 2011 06:14:49 +0000 (17:14 +1100)
committerLuke Howard <lukeh@padl.com>
Tue, 15 Mar 2011 06:14:49 +0000 (17:14 +1100)
mech_eap/init_sec_context.c

index a7d17b5..1f445bc 100644 (file)
@@ -952,10 +952,8 @@ gss_init_sec_context(OM_uint32 *minor,
     if (initialContextToken) {
         major = initBegin(minor, cred, ctx, target_name, mech_type,
                           req_flags, time_req, input_chan_bindings);
-        if (GSS_ERROR(major)) {
-            gssEapReleaseContext(minor, &ctx);
-            return major;
-        }
+        if (GSS_ERROR(major))
+            goto cleanup;
     }
 
     major = gssEapSmStep(minor,