2020-06-03 21:04:29

by Petr Vorel

[permalink] [raw]
Subject: [rpcbind 1/1] security: Fix typos in debug messages and comments

Signed-off-by: Petr Vorel <[email protected]>
---
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) ||
--
2.26.2


2020-06-04 14:26:37

by Steve Dickson

[permalink] [raw]
Subject: Re: [rpcbind 1/1] security: Fix typos in debug messages and comments



On 6/3/20 5:03 PM, Petr Vorel wrote:
> Signed-off-by: Petr Vorel <[email protected]>
Committed... (tag: rpcbind-1_2_6-rc5)

steved.

> ---
> 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) ||
>