From patchwork Wed Jul 1 04:05:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1195 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director10.mail.ord1d.rsapps.net ([172.30.191.6]) by backend30.mail.ord1d.rsapps.net with LMTP id eKj9HZKY/F4cfgAAIUCqbw for ; Wed, 01 Jul 2020 10:07:14 -0400 Received: from proxy3.mail.ord1d.rsapps.net ([172.30.191.6]) by director10.mail.ord1d.rsapps.net with LMTP id 4ODVHZKY/F6LPAAApN4f7A ; Wed, 01 Jul 2020 10:07:14 -0400 Received: from smtp16.gate.ord1d ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy3.mail.ord1d.rsapps.net with LMTP id SHZgHZKY/F4UfAAA7WKfLA ; Wed, 01 Jul 2020 10:07:14 -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: smtp16.gate.ord1d.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; dmarc=none (p=nil; dis=none) header.from=unstable.cc X-Suspicious-Flag: YES X-Classification-ID: 295a07ec-bba4-11ea-809d-525400ca3ad5-1-1 Received: from [216.105.38.7] ([216.105.38.7:48430] helo=lists.sourceforge.net) by smtp16.gate.ord1d.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 5E/1D-32284-1989CFE5; Wed, 01 Jul 2020 10:07:13 -0400 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.90_1) (envelope-from ) id 1jqdNi-00075N-1b; Wed, 01 Jul 2020 14:06:34 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqdNg-00075G-IN for openvpn-devel@lists.sourceforge.net; Wed, 01 Jul 2020 14:06:32 +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:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: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=2NlLfzcgJzOr9eZoOB5uMsGv3380HJPRr8FT3K3ZfeU=; b=dV85Z412/0wrJ6R9rX1HYx3Wh3 vDhnvu0S7OZY7uHXR4rdSjalaj2RmyDTDe3J/WM3snod8p6ZZCdRqAnnITCvU4/gfQgLMMncL8Z90 ooUohd1L0WnE7d1n85f94mTQ0MqSEnps3h/BeC01W4hvVGhtWC+MBsuYFiXPVtMx+PGs=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type: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=2NlLfzcgJzOr9eZoOB5uMsGv3380HJPRr8FT3K3ZfeU=; b=j j3Hny7djJOG3hlDcVwh1DTZQvMffTgletBmwSh6E5mUNZbckvuLMC7lLQWIsTCOojA67M1rqsKYRM /bk/WwgLKbwOlCke+dHqnTsDY9vMG6b4SY0iKvnKK5aMT0gyucpBYf9dk2brzKIEOiwDRfSsr0E8B 5FpQMMFGJN9r3Bks=; Received: from s2.neomailbox.net ([5.148.176.60]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1jqdNf-0074Qv-8b for openvpn-devel@lists.sourceforge.net; Wed, 01 Jul 2020 14:06:32 +0000 From: Antonio Quartulli To: openvpn-devel@lists.sourceforge.net Date: Wed, 1 Jul 2020 16:05:17 +0200 Message-Id: <20200701140517.11176-1-a@unstable.cc> MIME-Version: 1.0 X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 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: unstable.cc] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Headers-End: 1jqdNf-0074Qv-8b Subject: [Openvpn-devel] [PATCH] multi.c: use mi->cc_config instead of config variable 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: , Cc: Antonio Quartulli Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox Commit ("Remove parameter config from multi_client_connect_mda") has removed the config variable in favour of mi->cc_config, however one occurence was not changed. Fix it now by properly using mi->cc_config. Signed-off-by: Antonio Quartulli Acked-by: Gert Doering --- src/openvpn/multi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c index 19261c37..0e9e0db3 100644 --- a/src/openvpn/multi.c +++ b/src/openvpn/multi.c @@ -1729,7 +1729,7 @@ multi_client_connect_mda(struct multi_context *m, { struct buffer_entry *be; - for (be = config->head; be != NULL; be = be->next) + for (be = mi->cc_config->head; be != NULL; be = be->next) { const char *opt = BSTR(&be->buf); options_string_import(&mi->context.options,