From patchwork Wed Jun 3 21:03:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 11586237 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8518D138C for ; Wed, 3 Jun 2020 21:03:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 73744207D3 for ; Wed, 3 Jun 2020 21:03:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726635AbgFCVDt (ORCPT ); Wed, 3 Jun 2020 17:03:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:44308 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726645AbgFCVDt (ORCPT ); Wed, 3 Jun 2020 17:03:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DE42EAB5C; Wed, 3 Jun 2020 21:03:51 +0000 (UTC) From: Petr Vorel To: linux-nfs@vger.kernel.org Cc: Petr Vorel , Steve Dickson Subject: [rpcbind 1/1] security: Fix typos in debug messages and comments Date: Wed, 3 Jun 2020 23:03:41 +0200 Message-Id: <20200603210341.11641-1-pvorel@suse.cz> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Signed-off-by: Petr Vorel --- src/rpcbind.c | 4 ++-- src/security.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rpcbind.c b/src/rpcbind.c index 73daa1c..25d8a90 100644 --- a/src/rpcbind.c +++ b/src/rpcbind.c @@ -505,7 +505,7 @@ init_transport(struct netconfig *nconf) hints.ai_flags |= AI_NUMERICHOST; } else { /* - * Skip if we have an AF_INET6 adress. + * Skip if we have an AF_INET6 address. */ if (inet_pton(AF_INET6, hosts[nhostsbak], host_addr) == 1) @@ -518,7 +518,7 @@ init_transport(struct netconfig *nconf) hints.ai_flags |= AI_NUMERICHOST; } else { /* - * Skip if we have an AF_INET adress. + * Skip if we have an AF_INET address. */ if (inet_pton(AF_INET, hosts[nhostsbak], host_addr) == 1) diff --git a/src/security.c b/src/security.c index 8a12019..329c53d 100644 --- a/src/security.c +++ b/src/security.c @@ -145,7 +145,7 @@ is_loopback(struct netbuf *nbuf) #ifdef RPCBIND_DEBUG if (debugging) xlog(LOG_DEBUG, - "Checking caller's adress (port = %d)\n", + "Checking caller's address (port = %d)\n", ntohs(sin->sin_port)); #endif return (sin->sin_addr.s_addr == htonl(INADDR_LOOPBACK)); @@ -157,7 +157,7 @@ is_loopback(struct netbuf *nbuf) #ifdef RPCBIND_DEBUG if (debugging) xlog(LOG_DEBUG, - "Checking caller's adress (port = %d)\n", + "Checking caller's address (port = %d)\n", ntohs(sin6->sin6_port)); #endif return (IN6_IS_ADDR_LOOPBACK(&sin6->sin6_addr) ||