Don't free parts of the principal in channel bindings (LP: #1237981 ...
[mech_eap.git] / mech_eap / init_sec_context.c
index b2afed2..60d15ba 100644 (file)
@@ -292,7 +292,7 @@ peerInitEapChannelBinding(OM_uint32 *minor, gss_ctx_id_t ctx)
     *minor = 0;
 
 cleanup:
-    krbFreeUnparsedName(krbContext, &nameBuf);
+    /*namebuf is freed when used and may be left with a unowned pointer*/
     wpabuf_free(buf);
 
     return major;