From patchwork Tue Oct 8 01:26:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lev Stipakov X-Patchwork-Id: 847 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director9.mail.ord1d.rsapps.net ([172.28.255.1]) by backend30.mail.ord1d.rsapps.net with LMTP id +BeHLPCAnF09ZQAAIUCqbw for ; Tue, 08 Oct 2019 08:28:32 -0400 Received: from proxy1.mail.ord1c.rsapps.net ([172.28.255.1]) by director9.mail.ord1d.rsapps.net with LMTP id 2B9PLPCAnF2EdQAAalYnBA ; Tue, 08 Oct 2019 08:28:32 -0400 Received: from smtp38.gate.ord1c ([172.28.255.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy1.mail.ord1c.rsapps.net with LMTP id IA3oK/CAnF3bRAAA2VeTtA ; Tue, 08 Oct 2019 08:28:32 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp38.gate.ord1c.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dkim=fail (signature verification failed) header.d=gmail.com; dmarc=fail (p=none; dis=none) header.from=gmail.com X-Suspicious-Flag: YES X-Classification-ID: 23936d08-e9c7-11e9-9e92-5452007bdf16-1-1 Received: from [216.105.38.7] ([216.105.38.7:60008] helo=lists.sourceforge.net) by smtp38.gate.ord1c.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 4A/FA-14210-FE08C9D5; Tue, 08 Oct 2019 08:28:32 -0400 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.90_1) (envelope-from ) id 1iHoZx-00043Q-Jx; Tue, 08 Oct 2019 12:27:01 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1iHoZv-00042x-Qs for openvpn-devel@lists.sourceforge.net; Tue, 08 Oct 2019 12:26:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=K5xXHqbSNm/tL9LTMa9u+H154aCTqR5QEqBoBLOX7rs=; b=U9asTM5j/t/nmjgaDW34433ly0 c55WYQ05xonWzTb3F7k+G+XPwvEUUf0L5/Gwx4CQlBSgN+iDYTgRiqiWbnaRTcMnlOthGQ7646bkn XlrqkQBC4H2WClq7tTZuI9GhtpNfFIOxuFTOQEVchWGPkAvOFdL9f19OYquKto93YXi8=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:MIME-Version: Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=K5xXHqbSNm/tL9LTMa9u+H154aCTqR5QEqBoBLOX7rs=; b=kQSF2uF7ctgVMEmRJVPfKJbW+d at7LCD89Rdw1ZrqSXjLcEbhaCDMeFN4e5Ao+XLiKxzZobDcbTuShf9l1k4dAM9NGzrTGUVx1zLERu nUKqYnfvyFAwekXZqTp6IzCB2NTf0na2DbJES9YCGX0NTMTx9D9fVq0yc4sFaVeqF07c=; Received: from mail-ed1-f67.google.com ([209.85.208.67]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1iHoZu-002uwZ-K3 for openvpn-devel@lists.sourceforge.net; Tue, 08 Oct 2019 12:26:59 +0000 Received: by mail-ed1-f67.google.com with SMTP id f20so15423574edv.8 for ; Tue, 08 Oct 2019 05:26:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=K5xXHqbSNm/tL9LTMa9u+H154aCTqR5QEqBoBLOX7rs=; b=H5Y9FGDl5hZahDfhkcT6PXPkI5KkQNmtAKo+qpuAqTGCq1wkr3yzFr5caxM2GaP8Lv PyNy8fzJ7tWOlqRtJztBnGBlpGK00SluoG0s43BQulUxGyzdyiBzyTsyp+QGcHGIZ8ak xeZDbKRtZbh1g3T2yKP9hGUscBw0I+d+pUsu8M6Lq88skuXtt5DWHK3qNsTKeSgiTClV mel3qH/Es0BaGv42DycR/p++sKk7W3jMs2Cz870aN/Y65pUVc4M10Tmfg0UWQAtNc9aX EaDh4Rz45htudzLa+08ZC+lrynSrcmgi9rca/UYgQzp4nuHaCR3z+AjAq7n+gcbJxjmG S8qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=K5xXHqbSNm/tL9LTMa9u+H154aCTqR5QEqBoBLOX7rs=; b=LNmNJF42lFnNFBsYWvKifHmpoMSwSWZJG0QAcJ7N+qUOl11O9DYT1V+K4UvME8C+8S pCeI8a3ULNdJzk6ldlWfUMYOhBV6EWHbDo7HhooyAt5g/zWqAznWt4qVeNwViOkqGqPj g1Hm16qzcJWpmQGLAhMDLS8N6R2z353B47dTIDa4A9iM+Zefuh/JdpZn8WtlsLhLlsf/ xBd19pjRiFm1XqBb3Un1SsFvcb4GG6yXyFleO5BmERUERyFvpB2ycLPsJi3cn/uXlrgO 3qga2egZeXQDYq0RXlX1l31jHfseny96LPdTOlt+nN2mzumShxDlbjf05ZLWQdyQfeLY Ot5A== X-Gm-Message-State: APjAAAW1iqdvxhkt0Bhw2jwbegsQ/ce8gDx8lEAyfmoDkDfW+5njH+Cf qY0TNiPUVm+kCYRS+Smis5YlnyHsJdw= X-Google-Smtp-Source: APXvYqw4L0Z3p9F6LvLetSGgLGxGK0stOuTtltdOSYyfewhpVBDf7hewJ9Sce3fINpa51rd32V7sGg== X-Received: by 2002:a17:906:cec3:: with SMTP id si3mr28411623ejb.145.1570537611645; Tue, 08 Oct 2019 05:26:51 -0700 (PDT) Received: from stipakov.fi (stipakov.fi. [128.199.52.117]) by smtp.gmail.com with ESMTPSA id nq1sm2282981ejb.75.2019.10.08.05.26.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Oct 2019 05:26:51 -0700 (PDT) From: Lev Stipakov To: openvpn-devel@lists.sourceforge.net Date: Tue, 8 Oct 2019 15:26:45 +0300 Message-Id: <1570537606-29323-1-git-send-email-lstipakov@gmail.com> X-Mailer: git-send-email 2.7.4 X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (lstipakov[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.67 listed in list.dnswl.org] 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: openvpn.net] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.67 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-Headers-End: 1iHoZu-002uwZ-K3 Subject: [Openvpn-devel] [PATCH 1/2] push.c: fix Visual Studio build 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: , MIME-Version: 1.0 Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox From: Lev Stipakov Visual Studio doesn't support designated initializers for C code, so replace it with CLEAR() macro. Signed-off-by: Lev Stipakov Acked-By: Arne Schwabe --- src/openvpn/push.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openvpn/push.c b/src/openvpn/push.c index 49b9d1b..213e2b6 100644 --- a/src/openvpn/push.c +++ b/src/openvpn/push.c @@ -504,9 +504,10 @@ void send_push_reply_auth_token(struct tls_multi *multi) { struct gc_arena gc = gc_new(); + struct push_list push_list; + CLEAR(push_list); - struct push_list push_list = {}; prepare_auth_token_push_reply(multi, &gc, &push_list); /* prepare auth token should always add the auth-token option */