From patchwork Fri Feb 3 19:14:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Lichtenheld X-Patchwork-Id: 3041 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7300:c95:b0:82:e4b3:40a0 with SMTP id p21csp1375692dyk; Fri, 3 Feb 2023 11:15:21 -0800 (PST) X-Google-Smtp-Source: AK7set+6aODukfq759emFwdzKvteO5NYMfHIAps81YIWiRWep/vSsPojL+0Ew6d1VOv6IYwY9rJf X-Received: by 2002:a17:902:d103:b0:198:db5c:d296 with SMTP id w3-20020a170902d10300b00198db5cd296mr3056108plw.64.1675451721563; Fri, 03 Feb 2023 11:15:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675451721; cv=none; d=google.com; s=arc-20160816; b=xyByxv8qRsdz/+xLR56jYAjnOQ6ne7qGN2WWWBkjQueyUO2J0NFkH+YIg6PMupi+Hb i+C3z7oEaGNroKua9IQbUT11nfwo0qhE+LlhLRwNce1BnD7oZyW4wGoEnQk4lJNNDoRg +s+NChYzBinVffbwVC3RaF6jlzN6Y+8DJLZmzKCE4lIqUq0sDqN45YsgiP5ths/A28S5 KqC4rh+TY/OHMpBrKWfZpoXgR2XzJO9bPzf4mgLzliyVL4fIP35tcJVm9kalmhgP3HK2 acNi3iZox+22yuYsl1a2f7lzYSwNLHnA84jJR0U0kqYZoz9SxI4+UlulcDKt7EaPZVqA GAtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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; bh=EKuFXwEmT3xaAo3osg+D40pSvuSc2GbjChR8mxZKViU=; b=Z57AE9tD6rv5B6yxW2UcD1xMnU4xVJMWi93Wn1DtBo+mI+ST091RbyqZNDzbBy0Y7K Y1q2M1j3eJIIvcFqzMgxdDsNd2GkcfEIQe0vWGo8UJQL/s4GdiJCgfBtWeX1h52XLUaB SDsHMGgXhZJfieoTUUjjWZ4NnSOWCV4Go8W6I5iCoEkGJ0hyRIA44oFmtGBC5sYj/psP r9uwYSMoIpKzunRo1PYnBcNGtYVphQ44FcocLd20nnLv6saaF5lnK4pG0DBckI0+RQY6 o8iYL1cfjuTuyi4mrZ969l8i6/E/pCHSjwSBiTqarDnXqr6KSKHN2APT5b/44sRlgAas DEQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=M1AkjbVJ; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=Jis6dekS; 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 Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id j4-20020a170902da8400b00174c5fdc8d2si3578127plx.307.2023.02.03.11.15.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Feb 2023 11:15:21 -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=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=M1AkjbVJ; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=Jis6dekS; 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 Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1pO1WW-0005Qx-Tp; Fri, 03 Feb 2023 19:15:00 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pO1WU-0005Qk-Qh for openvpn-devel@lists.sourceforge.net; Fri, 03 Feb 2023 19:14:58 +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-Subscribe:List-Post:List-Owner:List-Archive; bh=ZVqZjP8iwtCwZG6AQRfPCo05N4tJvnyBT/O9m9Nx4Dg=; b=M1AkjbVJMLHh6CaokMsQISgfOF TVGU37+APHZJM6wyNHrFPlexpiejok/ELmdwS+5xIqX7Qt3bqG6teVMvJv8H4lseF0Ug8cArY6/07 nlvFDXfuwHIxLYOZQBiaaR8YFakYL1fAfEeoIT8BhnaxG7xt/5lU1K6FhwrwGYrauR1M=; 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-Subscribe: List-Post:List-Owner:List-Archive; bh=ZVqZjP8iwtCwZG6AQRfPCo05N4tJvnyBT/O9m9Nx4Dg=; b=Jis6dekSrxKWi9tCG9cAC2+AE4 pLiFk5jcL/sadrM92f3vDsz/0SaJPDlD5yAm6r4xHefYqSMi95YXFQPtgXpSY4bxcXZlnq5iWw+2F RScLgz8ODQttfRWYgGwXDDnSa2xu5/v/pRq+4VU7q9emt6m3VGjcRX7u7l0gtVJkMMY8=; Received: from mout-p-202.mailbox.org ([80.241.56.172]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1pO1WP-00015D-0O for openvpn-devel@lists.sourceforge.net; Fri, 03 Feb 2023 19:14:58 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4P7lhj3ZR4z9sZg for ; Fri, 3 Feb 2023 20:14:45 +0100 (CET) From: Frank Lichtenheld To: openvpn-devel@lists.sourceforge.net Date: Fri, 3 Feb 2023 20:14:39 +0100 Message-Id: <20230203191440.136050-5-frank@lichtenheld.com> In-Reply-To: <20230203191440.136050-1-frank@lichtenheld.com> References: <20230203191440.136050-1-frank@lichtenheld.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4P7lhj3ZR4z9sZg X-Spam-Score: -0.7 (/) X-Spam-Report: Spam detection software, running on the system "util-spamd-2.v13.lw.sourceforge.com", 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: Signed-off-by: Frank Lichtenheld --- src/openvpn/win32.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/openvpn/win32.c b/src/openvpn/win32.c index 44176936..ad3d9bf6 100644 --- a/src/openvpn/win32.c +++ b/src/openvpn/win32.c @@ -1358, 7 +1358, 6 @@ win32_get_arch(arch_t *process_arch, ar [...] Content analysis details: (-0.7 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [80.241.56.172 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record X-Headers-End: 1pO1WP-00015D-0O Subject: [Openvpn-devel] [PATCH 4/5] Windows: fix unused variable in win32_get_arch 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: =?utf-8?q?1756838464492388359?= X-GMAIL-MSGID: =?utf-8?q?1756838464492388359?= Signed-off-by: Frank Lichtenheld Acked-by: Lev Stipakov --- src/openvpn/win32.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/openvpn/win32.c b/src/openvpn/win32.c index 44176936..ad3d9bf6 100644 --- a/src/openvpn/win32.c +++ b/src/openvpn/win32.c @@ -1358,7 +1358,6 @@ win32_get_arch(arch_t *process_arch, arch_t *host_arch) USHORT process_machine = 0; USHORT native_machine = 0; - BOOL is_wow64 = FALSE; #ifdef _ARM64_ *process_arch = ARCH_ARM64; @@ -1380,8 +1379,8 @@ win32_get_arch(arch_t *process_arch, arch_t *host_arch) if (is_wow64_process2) { /* check if we're running on arm64 or amd64 machine */ - is_wow64 = is_wow64_process2(GetCurrentProcess(), - &process_machine, &native_machine); + BOOL is_wow64 = is_wow64_process2(GetCurrentProcess(), + &process_machine, &native_machine); if (is_wow64) { switch (native_machine) @@ -1403,7 +1402,7 @@ win32_get_arch(arch_t *process_arch, arch_t *host_arch) else { BOOL w64 = FALSE; - is_wow64 = IsWow64Process(GetCurrentProcess(), &w64) && w64; + BOOL is_wow64 = IsWow64Process(GetCurrentProcess(), &w64) && w64; if (is_wow64) { /* we are unable to differentiate between arm64 and amd64