summaryrefslogtreecommitdiff
path: root/compat/fake-rfc2553.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2025-10-07 13:46:20 +0000
committerCy Schubert <cy@FreeBSD.org>2025-10-07 13:46:20 +0000
commit0064eb9cf1c8d526e87d3149249445d4bc8d0248 (patch)
tree787781364f76fc0dfa0085fd1f3208b5b1f44b5a /compat/fake-rfc2553.c
parentc8864f6ba46ff3271d97b4ae1c3cc6ce01eaf18a (diff)
unbound: Vendor import 1.24.0vendor/unbound/1.24.0
Diffstat (limited to 'compat/fake-rfc2553.c')
-rw-r--r--compat/fake-rfc2553.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/compat/fake-rfc2553.c b/compat/fake-rfc2553.c
index 0f0f34f1fb2d..45b703f2bce8 100644
--- a/compat/fake-rfc2553.c
+++ b/compat/fake-rfc2553.c
@@ -57,7 +57,7 @@ int getnameinfo(const struct sockaddr *sa, size_t ATTR_UNUSED(salen), char *host
}
if (host != NULL) {
- if (flags & NI_NUMERICHOST) {
+ if ((flags & NI_NUMERICHOST)) {
if (strlcpy(host, inet_ntoa(sin->sin_addr),
hostlen) >= hostlen)
return (EAI_MEMORY);
@@ -168,7 +168,7 @@ getaddrinfo(const char *hostname, const char *servname,
port = 0;
}
- if (hints && hints->ai_flags & AI_PASSIVE) {
+ if (hints && (hints->ai_flags & AI_PASSIVE)) {
addr = htonl(0x00000000);
if (hostname && inet_aton(hostname, &in) != 0)
addr = in.s_addr;
@@ -193,7 +193,7 @@ getaddrinfo(const char *hostname, const char *servname,
}
/* Don't try DNS if AI_NUMERICHOST is set */
- if (hints && hints->ai_flags & AI_NUMERICHOST)
+ if (hints && (hints->ai_flags & AI_NUMERICHOST))
return (EAI_NONAME);
hp = gethostbyname(hostname);