destroy conn handle after authenticated
authorLuke Howard <lukeh@padl.com>
Sat, 9 Oct 2010 07:46:18 +0000 (09:46 +0200)
committerLuke Howard <lukeh@padl.com>
Sat, 9 Oct 2010 07:46:18 +0000 (09:46 +0200)
accept_sec_context.c

index eb1b950..501dd67 100644 (file)
@@ -328,6 +328,9 @@ eapGssSmAcceptAuthenticate(OM_uint32 *minor,
         ctx->acceptorCtx.vps = frresp->vps;
         frresp->vps = NULL;
 
+        rs_conn_destroy(ctx->acceptorCtx.radConn);
+        ctx->acceptorCtx.radConn = NULL;
+
         major = acceptReadyEap(minor, ctx, cred);
         if (GSS_ERROR(major))
             goto cleanup;