From patchwork Mon Jun 22 11:05:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 1314615 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=YlPxUAX3; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=BRtXdWrC; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=default header.b=KCvrcHQb; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49rFD647bZz9sQt for ; Tue, 23 Jun 2020 02:26:46 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:MIME-Version:Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=XuciSdnV06p+1m4SrdjFIADTugbAP9tIhwcfaHbJP7k=; b=YlPxUAX3aJJ3KOi5NOy24WB9RS GiJFhKyNSt1e4EHQcZUu+njFzN6AzDrGtXPIzwxViwfii5y8cPIM4ySvEXwM64hkDYjsaGSJvaYZS qHnnclVFCF7QFOxpANlh4E6hH8CZIoyJn1k7G/L1J0ecQ6iRR45bWOk1K3yiI9H2wX+HKgTj6ElrJ o141M0cYYCBoKCmj0/sGxlHShvJb4Qop2MSACNN9OFHJlEXJ+yJA+GMWbWmBCZLe08pzIc5SmhRcr 5rx/UHNWqIIdJa8+x4w8lsWSMZ1fwr3oyOApgrqDG1ZCMv4CF6L0oDYJlsZ+ALK7Y1ES5f/Otwoj/ 4prHOqxA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnPG1-0007nN-Lu; Mon, 22 Jun 2020 16:25:17 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnLuG-0003QD-Eu for hostap@merlin.infradead.org; Mon, 22 Jun 2020 12:50:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=SjJ/779on0z/KN3eHm4W3ja/85S6Hiq8GUhQm1LbBvs=; b=BRtXdWrCVER3V8yWSG2TuBDwQW 860O7zBa2IF39B64CeTRssDyQudufKMxelnXDTOTrRDy4dDXPAt1P6bK7zKJNfyqEVP833MoNHorP wHchDdI0JVVKwvLHEhqbBLShuLw2GV9q+oCJFRWAApidlbI/1HmqPNoxgkqpjT9skn7T/9tHBtAyC 9A0EFcg1EJn9qN61ciw3G46808XIjhOaCvOlmfOLyAlsLUNKYN1JSXxefeoNO7SAHb0yMNzfx6Mik 0V4iCsLGFbLsolwl4kFT6Q69n2uUQ1+W8rPPbnaQa+EgrtRbQvWSUWrDEiPsbogM9N/wmgXD9r9cK yw/7ZtTA==; Received: from mail.kernel.org ([198.145.29.99]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnKHb-0006WQ-Kp for hostap@lists.infradead.org; Mon, 22 Jun 2020 11:06:38 +0000 Received: from pali.im (pali.im [31.31.79.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F19B520706 for ; Mon, 22 Jun 2020 11:06:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592823991; bh=nwDMDb6OA3DMA8gyUPtDPjW0MTLs4LoHA1Dph5aEJWo=; h=From:To:Subject:Date:From; b=KCvrcHQbjXTwkyepMqpQEQl333+rSWj7zVlXuCBsk0D5v6KQMbcM9V/ek9V3/nBM4 zQQOqhZR2cS+v14uz7u9gsLLTs9CxBhqxQFT7nbyQaTWVeMZ3/I2BSiDxvuiGn6tp4 rS3WbeFa5mlSVyTO1Da7Wi79MYhkKx0fVDj4Cdac= Received: by pali.im (Postfix) id 074667CD; Mon, 22 Jun 2020 13:06:28 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: hostap@lists.infradead.org Subject: [PATCH] hostapd: Fix error message for radius_accept_attr config option Date: Mon, 22 Jun 2020 13:05:58 +0200 Message-Id: <20200622110558.12068-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200622_120635_930534_21B912BD X-CRM114-Status: GOOD ( 12.47 ) X-Spam-Score: -7.1 (-------) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-7.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-Mailman-Approved-At: Mon, 22 Jun 2020 12:25:16 -0400 X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Error message contained wrong config option. --- hostapd/config_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 1861b5203..06925de89 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -340,9 +340,9 @@ static int hostapd_config_read_eap_user(const char *fname, if (user && os_strncmp(buf, "radius_accept_attr=", 19) == 0) { struct hostapd_radius_attr *attr, *a; attr = hostapd_parse_radius_attr(buf + 19); if (attr == NULL) { - wpa_printf(MSG_ERROR, "Invalid radius_auth_req_attr: %s", + wpa_printf(MSG_ERROR, "Invalid radius_accept_attr: %s", buf + 19); user = NULL; /* already in the BSS list */ goto failed; }