File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -548,6 +548,8 @@ ipv4eq(struct sockaddr_in *a, struct sockaddr_in *b)
548548 return (a -> sin_addr .s_addr == b -> sin_addr .s_addr );
549549}
550550
551+ #ifdef HAVE_IPV6
552+
551553static bool
552554ipv6eq (struct sockaddr_in6 * a , struct sockaddr_in6 * b )
553555{
@@ -560,6 +562,8 @@ ipv6eq(struct sockaddr_in6 *a, struct sockaddr_in6 *b)
560562 return true;
561563}
562564
565+ #endif /* HAVE_IPV6 */
566+
563567/*
564568 * Check to see if a connecting IP matches a given host name.
565569 */
@@ -614,6 +618,7 @@ check_hostname(hbaPort *port, const char *hostname)
614618 break ;
615619 }
616620 }
621+ #ifdef HAVE_IPV6
617622 else if (gai -> ai_addr -> sa_family == AF_INET6 )
618623 {
619624 if (ipv6eq ((struct sockaddr_in6 * ) gai -> ai_addr ,
@@ -623,6 +628,7 @@ check_hostname(hbaPort *port, const char *hostname)
623628 break ;
624629 }
625630 }
631+ #endif
626632 }
627633 }
628634
You can’t perform that action at this time.
0 commit comments