From bc4baf6babe58a61affc6ba085bf6c9cdfee730f Mon Sep 17 00:00:00 2001 From: Tim McMullan <mcmullan@schedmd.com> Date: Thu, 15 Oct 2020 08:56:30 -0400 Subject: [PATCH] Don't throw lookup error slurm_auth_get_host() if IPv6 is enabled. cred address will always be 0.0.0.0 for IPv6 (for now) so the error is expected. Bug 8350 --- src/plugins/auth/munge/auth_munge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/auth/munge/auth_munge.c b/src/plugins/auth/munge/auth_munge.c index a1ea6ffa40a..a1557cb6679 100644 --- a/src/plugins/auth/munge/auth_munge.c +++ b/src/plugins/auth/munge/auth_munge.c @@ -329,7 +329,8 @@ char *slurm_auth_get_host(slurm_auth_credential_t *cred) uint16_t port; hostname = xmalloc(INET_ADDRSTRLEN); slurm_get_ip_str(&addr, &port, hostname, INET_ADDRSTRLEN); - error("%s: Lookup failed for %s", __func__, hostname); + if (!(slurm_conf.conf_flags & CTL_CONF_IPV6_ENABLED)) + error("%s: Lookup failed for %s", __func__, hostname); } return hostname; -- GitLab