[rpcbind,1/1] security: Fix typos in debug messages and comments
diff mbox series

Message ID 20200603210341.11641-1-pvorel@suse.cz
State New
Headers show
Series
  • [rpcbind,1/1] security: Fix typos in debug messages and comments
Related show

Commit Message

Petr Vorel June 3, 2020, 9:03 p.m. UTC
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 src/rpcbind.c  | 4 ++--
 src/security.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Comments

Steve Dickson June 4, 2020, 2:23 p.m. UTC | #1
On 6/3/20 5:03 PM, Petr Vorel wrote:
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
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) ||
>

Patch
diff mbox series

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