From patchwork Mon Nov 23 13:49:58 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5771 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:6022:91c9:10b0:11b:d6c:f273 with SMTP id tl9-n1csp2775790lad; Mon, 23 Nov 2026 05:50:16 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErEkSc6hQ/SoKcWFxqVZOLSGD1WHYny3SqjDPL1STdNHOiD+C+4Z0zDiBEuCk1oRctzwtVl6ge50Eds=@openvpn.net X-Received: by 2002:a05:693c:8209:b0:36a:4a68:84e5 with SMTP id 5a478bee46e88-3856f14bcfbmr13183899eec.8.1795441816445; Mon, 23 Nov 2026 05:50:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795441816; cv=none; d=google.com; s=arc-20260327; b=X5/q5pNI8ExUhj1BZQulwplOea5MKM5b6tnJlALtiuxIiy8a2sf5XqCvvzRCOsQImx w+h59G2JASy8qtCsV7Sba1/Pcb26r+MbUSKfxUFCm2e+8J6+zb6fyabbQoUkGVcfHoMB hXNyI+YmOxRRSK5sWPYdWnSqQb731/ifdIfsbVXSgAZUoumn7ACelW+b1JfDC/V8fDhE /N6hGvzijqnUl/O3PNSq6Mu2+ZYYZlQ6OirbyYYNoqgAq1zy0kMBqfB96O2dTsKgyElN RjWl5FY4utBjwnpfa01FU/G6fYYovjkvIrbEMLEnM6qdjroiEZh/JlXJtTZLHxvxWnQx o2GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature:dkim-signature; bh=v3TXCK2P6RaERYwGuWiJi4HfxhkzW0DMndGGiMZig18=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=SbzXN1Y3kKsuhqq/aeSvT6Xra0MxdNAjqOpT3Q/rhrcW8KiWgvz/wf2WPyk/OEIhAl 9w/33w3WI0cfyLBejlUCUTL12/3mCmJuaXoIcTtuF2BKUbDdJXsMPvw2pZF1coB+zQaF mDrOLKiUvsa97Y2/J13wrV2ZTxNSsoP9hjHjO115Omi9Qa1WoAWhS/mUoEJglPfADupT ok8WviWgKSAvenhZI4NIyubFKJ8rjETF8lZ1XPaiLDe9WgD8i9+XpJHPP/065RUUCpxp +IMUSkA6vaLScvwcU023JAjHZqIiiSJbrVg/synqdjKjtsJrJ3soNg1qskvWDFhihAWp fFFQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=DIiHhVX3; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=FdLMbvuV; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=ZP6sQUpg; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id 5a478bee46e88-38566ad6d06si29534026eec.9.2026.11.23.05.50.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Nov 2026 05:50:16 -0800 (PST) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=DIiHhVX3; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=FdLMbvuV; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=ZP6sQUpg; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=v3TXCK2P6RaERYwGuWiJi4HfxhkzW0DMndGGiMZig18=; b=DIiHhVX3Byqedi Kf5NeOdyM2I0X5mCWKIp7Udp5+DVQSdQpw/QOJ53REGrxaV/YVx5JsGKZRftby3Tj7QujPMcU4myI qR13P0gqjm4lHHjcQQ7AdxQG5cLuQx7lb2zLqcp4lGVn0jmrvSB5HgQSVbgKBxHKxGIeHlJRuL7HX uuE=; Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.100.1) (envelope-from ) id 1xVUQw-000000003nZ-0774; Mon, 23 Nov 2026 13:50:14 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xVUQu-000000003nR-11p6 for openvpn-devel@lists.sourceforge.net; Mon, 23 Nov 2026 13:50:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GqrFXO8qf0naRMzXxuJuW3fYNOdETeSu+EZb6Gt00mo=; b=FdLMbvuVgdmxk0pJUy8ZzISb7w p6pLejGZ3NnmZu/VLxhdPPxScVkhhO0vfcpCqG35YGGc4Gn7JFLbNY47DzLBd3gLBft3uY0VoFze8 G4I7OzFVCH8VOcM/iGHNmttI7plOAQI5SywXpEF4e9wqWrrFeBnxtCFlLVHmkkoGMGcY=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GqrFXO8qf0naRMzXxuJuW3fYNOdETeSu+EZb6Gt00mo=; b=ZP6sQUpgK6X4JqbCtUoS3hdFBj fexxr+qHzswJdtRLmksZrTH2uKsxNVYquWRD9BjXL06s0rf8+6f9ffPyaSnjZVbNV38OmUqTgLoto 8N8MlyMx/Ri5KxdKJxKiYN3jum08h8x/6Yxy8NBKRDAZxnMyAwoKMMBmFTsfxTy176vI=; Received: from [193.149.48.129] (helo=blue.greenie.muc.de) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1) id 1xVUQs-000000003dR-1bQv for openvpn-devel@lists.sourceforge.net; Mon, 23 Nov 2026 13:50:11 +0000 Received: from blue.greenie.muc.de (localhost [127.0.0.1]) by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 6ANDo3Y9031937 for ; Mon, 23 Nov 2026 14:50:03 +0100 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 6ANDo3Ea031936 for openvpn-devel@lists.sourceforge.net; Mon, 23 Nov 2026 14:50:03 +0100 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Mon, 23 Nov 2026 14:49:58 +0100 Message-ID: <20261123135003.31908-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "sfi-spamd-1.hosts.colo.sdot.me", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Razvan Cojocaru ext_key_input was freed there, its certificate counterpart was not. While here, pass mc to in_extra_reset() like the rest of the function. Change-Id: I48d315a38a653aed4b33d3277433cb8a6596942d Signed-off-by: Razvan Cojocaru Acked-by: Frank Lichtenheld Gerrit URL: https://gerrit.openvpn.net/c/o [...] Content analysis details: (1.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Headers-End: 1xVUQs-000000003dR-1bQv Subject: [Openvpn-devel] [PATCH v2] manage: free ext_cert_input in man_connection_close() X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: 1882657197820572380 X-GMAIL-MSGID: 1882657197820572380 From: Razvan Cojocaru ext_key_input was freed there, its certificate counterpart was not. While here, pass mc to in_extra_reset() like the rest of the function. Change-Id: I48d315a38a653aed4b33d3277433cb8a6596942d Signed-off-by: Razvan Cojocaru Acked-by: Frank Lichtenheld Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2237 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2237 This mail reflects revision 2 of this Change. Acked-by according to Gerrit (reflected above): Frank Lichtenheld diff --git a/src/openvpn/manage.c b/src/openvpn/manage.c index 86c498e..a5b635d 100644 --- a/src/openvpn/manage.c +++ b/src/openvpn/manage.c @@ -2860,8 +2860,9 @@ event_timeout_clear(&mc->bytecount_update_interval); - in_extra_reset(&man->connection, IER_RESET); + in_extra_reset(mc, IER_RESET); buffer_list_free(mc->ext_key_input); + buffer_list_free(mc->ext_cert_input); man_connection_clear(mc); }