From patchwork Fri Nov 27 18:13:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5810 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:6022:91c9:10b0:11b:d6c:f273 with SMTP id tl9-n1csp9274953lad; Fri, 27 Nov 2026 10:13:23 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErGUXIDbAlwAvUIkbKZ4+BrxC5r+hhmhRmkPKtR0F6+7SHFpJU9oQ5MasnA6EzQpMMsXxeHeDSg+Agc=@openvpn.net X-Received: by 2002:a05:6870:a791:b0:4b5:65d9:5bbf with SMTP id 586e51a60fabf-4bc812a3f28mr22874085fac.29.1795803203447; Fri, 27 Nov 2026 10:13:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795803203; cv=none; d=google.com; s=arc-20260327; b=eksZlSfYg00NXvmBkpGQfJnLorEPuUZmG6rbzjiHWaAukmdIjfrF6my6aHabv6ldHK mQS+C2qGnyXbxZZf7pYOzawWupntQz96PmBlOObbxAIv2pVJjseKutsfE+ING2qEcCzW Sso9am204YIX2hEvoAamD6mFCBals1f3U9GQ0GRlcv76OhnFDNeOvIQssSyh+5sEJvwf 7/1Pi3PE2VyMY9VP7RJj6ohaQbFCiJ5WygaKRXK/cYsb3/ibejKWvobJEEcJYFZOQzx8 OIFGeFFhPi2hCeqUeelwTSxR7YTV+nufj5mz2RXjeNFL3S5fc5iAB5Bf4mMau+RB6x1y fwlw== 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=tY6Hjad7Lq1E3m8qLxpt/8m+q9KlQ6TYlVIA9eaW7Ww=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=IvlnTvb+r6JLCzSVDbIUy0A8Z/IZ+jCNdy4x2WZPlblLTncJWOj6NAhdrL9NWNluEp 0eUPh9apPo5Fjf5TClq0uxWYdICzVRZxXVsX8q6/34j326mmLAyE7HoY5RYFOPwkHrOZ YU+GPIJKF0q2KO6OwSNE4V5aM0KN/LUYxq+4+NBk8Z5K4G8wNb2pkzHK6MTYBZOCpYhB ttrSLrdiqKlRkXvg6hAZFyEopWlYp6ZHgfo4mIMgRXjgtoTJq7nb0xrgtXSNlOIE+TNJ TPjf6fmbVpY5KUimJs7tOjpHtBAvsh9WqS4J8KC6GOjwt2ykXecTT/fjaM9s1kOXaoqH Xj0A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=NKBJ6d7p; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=DnviUSNp; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=ENPAYBFA; 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 586e51a60fabf-4bc5b8827a6si40461427fac.36.2026.11.27.10.13.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Nov 2026 10:13:23 -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=NKBJ6d7p; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=DnviUSNp; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=ENPAYBFA; 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=tY6Hjad7Lq1E3m8qLxpt/8m+q9KlQ6TYlVIA9eaW7Ww=; b=NKBJ6d7p7jxoel n28EIOCq3h6nR+QdWLZ36egJXPbPAcI2uoKex9wbOph5est1fqvXEhKvsYu5Kp3/uNeV3x0LyCz5c QYfSJ1P2sRDlj6yRSlB9zFhuvrWBg89RIEm/k6cnrmfsmiVY7EhfgVSfHC2eOk3Deu6UY3PSsGvFz 5ug=; Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.100.1) (envelope-from ) id 1xX0Rm-000000003BY-1wZL; Fri, 27 Nov 2026 18:13:22 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xX0Rl-000000003BQ-2YhU for openvpn-devel@lists.sourceforge.net; Fri, 27 Nov 2026 18:13:21 +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=g6VfHGOVfiqTYKtYJdk9WAtqrlU+0XCx2XoiW9/ko40=; b=DnviUSNp+lAYHSFvKy41iIOoQt zeKgLauO05cUhCohtvQ5YCQy5hPPBaIBa99cF/2eiRNIwQo0TTAAAFwSDUaPSvFtanWQG82ibWK+x /bg7sR+LahtdK0uxg4goJhyCJxSlKmZa4LI/5UPTzi48xD4tOIKqZoliQHQjSqxV5AYw=; 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=g6VfHGOVfiqTYKtYJdk9WAtqrlU+0XCx2XoiW9/ko40=; b=ENPAYBFA3tihVhnEJVSJZqePtI icYpeXUOK9eZLxOfDp2yxuTaTr+UeJb5Bipy+kpne7MEIxYx4BKz93eBVNDZXOIsOQxe2159KQdPC DMtrZjBQat5Xgw/kPlL/7v4wnMLKFLPEo3gGqt8VIlDLO8NG2+p3mmg80K6X3STlDEvM=; Received: from [193.149.48.129] (helo=blue.greenie.muc.de) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1) id 1xX0Rj-000000007lJ-42yE for openvpn-devel@lists.sourceforge.net; Fri, 27 Nov 2026 18:13:21 +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 6ARIDDNS025190 for ; Fri, 27 Nov 2026 19:13:13 +0100 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 6ARIDDb5025189 for openvpn-devel@lists.sourceforge.net; Fri, 27 Nov 2026 19:13:13 +0100 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Fri, 27 Nov 2026 19:13:07 +0100 Message-ID: <20261127181312.25173-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-2.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 uninit_early() passes the --providers names to crypto_unload_provider(), but uninit_options() has already freed them along with the options gc. Call uninit_early() first. 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: 1xX0Rj-000000007lJ-42yE Subject: [Openvpn-devel] [PATCH v1] openvpn: unload providers before freeing the options 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: 1883036139801032658 X-GMAIL-MSGID: 1883036139801032658 From: Razvan Cojocaru uninit_early() passes the --providers names to crypto_unload_provider(), but uninit_options() has already freed them along with the options gc. Call uninit_early() first. Change-Id: Ia6731f4e8ebe8b5ac78ec17045b515b6cc9ea016 Signed-off-by: Razvan Cojocaru Acked-by: Frank Lichtenheld Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2362 --- 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/+/2362 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): Frank Lichtenheld diff --git a/src/openvpn/openvpn.c b/src/openvpn/openvpn.c index 2278266..d9a7c85 100644 --- a/src/openvpn/openvpn.c +++ b/src/openvpn/openvpn.c @@ -330,9 +330,9 @@ } while (signal_reset(c.sig, SIGUSR1) == SIGUSR1); env_set_destroy(c.es); + uninit_early(&c); uninit_options(&c.options); gc_reset(&c.gc); - uninit_early(&c); } while (signal_reset(c.sig, SIGHUP) == SIGHUP); }