Message ID | 20191018020419.28686-1-masashi.honma@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> 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=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BCSTUdBS"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hzaUBHh3"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (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 46vTr16yhGz9sPF for <incoming@patchwork.ozlabs.org>; Fri, 18 Oct 2019 13:04:44 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=FosgQAeHKUw5I/GH6BFOyJzyFXoMEDuVqQ+29562bNU=; b=BCSTUdBS4fZn2S 1j9V6j+tyYJVBsPxS/855KRPObU4m8vP0NPeXLxI1uNKuu0ViNLnW3N9V2CMT/tYOSqwXFBz4ERH0 b/vUBjVZ5pAtTwaWRrV70TlXASWZCLWXnUOAWI2/ikRwAu4yNaSlRUhsW+YOoenxKC9YHOD5xK5oC inAv3Zm4wYuJo0ZIPR5wr03za+t+cPcVbNk1rD7ZxlpERUhAnUTM3U/MIjmDf+wYOSpvWBz4IYjIH dnLs+2TxSZDz0/bzk+cENs/uqZoookH4GbZsOcUdTTPFLfMAZa3nXiwIqQ1MV3rwN+l046mzx7jWU iG6M1RB19K7K7yYRVH7w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLHd5-0001PP-SZ; Fri, 18 Oct 2019 02:04:35 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLHd3-0001Ol-Kg for hostap@lists.infradead.org; Fri, 18 Oct 2019 02:04:34 +0000 Received: by mail-pf1-x444.google.com with SMTP id q7so2820456pfh.8 for <hostap@lists.infradead.org>; Thu, 17 Oct 2019 19:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R5zp/weqOMbFB0Zo7kilHGyq1gPfOokSCu1E0OdGuKg=; b=hzaUBHh3c0kGKrkyw+DVpeeqjGSqZDcdV0mHQT4c80PW5Mu/FeGE4gqU+5i++F7Zoj tUilhTYrYmokwcuFkiiGXrhb+b9hN7c5huk5d/nSfVggatcjWsJJG9nbC/MD00f13QfG vfF9M/PAnsefRasuOEOCeqfxzby67Hz7Vay6N9m+zdgJmMmSUhsJGDNi/633OQ4skX5u S4erKEHnXjZ/0/HLsOtEMK/DE2tw8v3tVZUGFWDuw8GEiCYvfD3KIsdUJnqfIp7ijNPn 1n2z0v4Fha7tPKpdjNLyUd05DVdNKPipJVwjyy1faHiarBA+WtJhBXtj6sVFnt3myTCZ +Now== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R5zp/weqOMbFB0Zo7kilHGyq1gPfOokSCu1E0OdGuKg=; b=ehk8JA5GJrtLg5OF9YZLsoFFp/HgTQng//UpNWN44qswyZmBlZfhXvVm75XxHcpwsg TINX+c6GF5R9CTAIp0vauwkqO67IroiiH3iMwwXfUYkZ3y4xNu3H9qF6Nwwji31y2Wyv Y5pXGli0GLZUHGc0OS5NK2wJAoji/lXeo1y2+zbDg0QKh/PidOBZzoG0VcxSRBonTMDJ c8GqG+PrrLD/8YnAzvKF9lBLEnW05a6EGBjrQm1BbPO4JewCCrHAuz0j37wfcMtUNNP6 hG+L1QHSZ1Vm5FYWrnXKONbTiuhGzjOQpWPuJFGl6BwVm2hpMOmkb+Aa3Du4dZ6tgpWx 2HQA== X-Gm-Message-State: APjAAAUyzlux0ybLrCa5PyC7kAXH2GA5sQwvfR7/MuHY77aL92/nXa5C pyZJfuTLRB4wpMLY/vmws2SH8CmX X-Google-Smtp-Source: APXvYqxKEEY+71bzw1y0qxuMA3yF6+oL6LjhLU9AD9bbjagLqlnf6CSg91EnEnphQGyvzU/7ykFhfg== X-Received: by 2002:a62:5209:: with SMTP id g9mr3724461pfb.28.1571364272105; Thu, 17 Oct 2019 19:04:32 -0700 (PDT) Received: from corei7.flets-east.jp ([2409:11:53c0:1f00:45ab:dc59:e845:2782]) by smtp.gmail.com with ESMTPSA id 18sm4410736pfp.100.2019.10.17.19.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 19:04:31 -0700 (PDT) From: Masashi Honma <masashi.honma@gmail.com> To: hostap@lists.infradead.org Subject: [PATCH 1/2] interworking: Check NULL string to avoid compiler warning Date: Fri, 18 Oct 2019 11:04:18 +0900 Message-Id: <20191018020419.28686-1-masashi.honma@gmail.com> 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-20191017_190433_706718_512BBF7C X-CRM114-Status: GOOD ( 10.02 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:444 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (masashi.honma[at]gmail.com) 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_EF Message has a valid DKIM or DK signature from envelope-from domain -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 Message has at least one valid DKIM or DK signature X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Cc: Masashi Honma <masashi.honma@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
[1/2] interworking: Check NULL string to avoid compiler warning
|
expand
|
Thanks, both patches applied.
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c index 0261bb7b8..d8e9c95a7 100644 --- a/wpa_supplicant/interworking.c +++ b/wpa_supplicant/interworking.c @@ -2262,7 +2262,7 @@ int interworking_home_sp_cred(struct wpa_supplicant *wpa_s, realm++; wpa_msg(wpa_s, MSG_DEBUG, "Interworking: Search for match with SIM/USIM domain %s", - realm); + realm ? realm : "[NULL]"); if (realm && domain_name_list_contains(domain_names, realm, 1)) return 1;
Fix warning by gcc 9.2.1. interworking.c: In function ‘interworking_home_sp_cred’: interworking.c:2263:3: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 2263 | wpa_msg(wpa_s, MSG_DEBUG, | ^~~~~~~~~~~~~~~~~~~~~~~~~ 2264 | "Interworking: Search for match with SIM/USIM domain %s", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2265 | realm); | ~~~~~~ Signed-off-by: Masashi Honma <masashi.honma@gmail.com> --- wpa_supplicant/interworking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)