Message-ID: <22613922-5735-f2e3-812e-c58651534157@...2181...> Date: Fri, 5 Nov 2021 17:31:44 +0100 MIME-Version: 1.0 Content-Language: en-US References: <20211019183127.614175-1-arne@...1227...> <20211105161302.2916786-1-arne@...1227...> From: Antonio Quartulli In-Reply-To: Subject: Re: [Openvpn-devel] [PATCH v4] Refactor early initialisation and uninitialisation into methods List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: Gert Doering , Arne Schwabe Cc: openvpn-devel@lists.sourceforge.net Hi, On 05/11/2021 17:20, Gert Doering wrote: > Hi, > > On Fri, Nov 05, 2021 at 05:13:02PM +0100, Arne Schwabe wrote: >> +static void uninit_early(struct context *c) >> +{ >> + net_ctx_free(&c->net_ctx); >> +} > > The extra "&" here does not look right. Shouldn't this be > "c->net_ctx" as in "init_early()"? it's the other way around. "init_early()" should also use the "&" operator. We need to pass a pointer to the networking context, but the member is a real object. (Check the code being removed for reference). Regards, -- Antonio Quartulli