From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=new2025; t=1756391787; bh=aqTf7WGJ5ddjjdWbDgjHyzGaG7WQgEoCH7gEVp1Qj+8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Message-ID:Date:From: Reply-To:Subject:To:Cc:In-Reply-To:References:Resent-Date: Resent-From:Resent-To:Resent-Cc:User-Agent:Content-Type: Content-Transfer-Encoding; b=spQBV3D9qsHxDTv5Ot2v7/Sctqp5/zgEB/jV1Nqnq39UsHolkKWgmOqZBeBCouCBE KeV/OjxrqDug5YaR2ItuflxGrjS99KhQ8F6xZ0f78XpKESGEn8oGeHSzG5G5ZdnVco ZlXGv2nryqlyL5pZBje+TO9QU0cGR8SME6lg+sgBIxqDwV9y2e/qJoHVtQQI2G58S5 ka1WSI8KKyaGlinJVWSB4Olj1NhitslzljmlCSRy8uI/n9XH8bjYFl5xrDUUHE9BUl YGCvjJ4qiMocRVFCN5KDcFtwfiLBktpS9M3LMbHyKOl+Dn2Rv8q2XKO3ZkwjiouLBY FIyKlfdjNyYkQ== Received: from zero (unknown [182.253.228.107]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id 8925F3127F75; Thu, 28 Aug 2025 14:36:25 +0000 (UTC) From: Ahmad Gani To: Ammar Faizi Cc: Ahmad Gani , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH gwproxy v6 01/11] gwproxy: Fix syntax error inside assertion Date: Thu, 28 Aug 2025 21:34:23 +0700 Message-ID: <20250828143444.540247-2-reyuki@gnuweeb.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250828143444.540247-1-reyuki@gnuweeb.org> References: <20250828143444.540247-1-reyuki@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: The default configure script didn't catch this error, but when --debug added as configure option, and it failed to compile. Fixes: e941a3354eb3 ("gwproxy: Split socks5 and http initialization") Signed-off-by: Ahmad Gani --- src/gwproxy/gwproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gwproxy/gwproxy.c b/src/gwproxy/gwproxy.c index 86bae757555a..ac2bbc515c4e 100644 --- a/src/gwproxy/gwproxy.c +++ b/src/gwproxy/gwproxy.c @@ -667,7 +667,7 @@ out_err: static void gwp_ctx_free_socks5(struct gwp_ctx *ctx) { - assert(ctx->cfg->as_socks5); + assert(ctx->cfg.as_socks5); gwp_socks5_ctx_free(ctx->socks5); ctx->socks5 = NULL; pr_dbg(&ctx->lh, "SOCKS5 context freed"); -- Ahmad Gani