use .s_addr to handle potential union in struct in_addr

This commit is contained in:
Mark Andrews
2021-11-25 16:13:46 +11:00
parent 6bd1e6de94
commit 1092d8e25a

View File

@@ -2066,7 +2066,7 @@ doh_path_validation(void **state) {
static void
doh_connect_makeuri(void **state) {
struct in_addr localhostv4 = { ntohl(INADDR_LOOPBACK) };
struct in_addr localhostv4 = { .s_addr = ntohl(INADDR_LOOPBACK) };
isc_sockaddr_t sa;
char uri[256];
UNUSED(state);