avoid issue with memset (optimizer issue with builtin_memset?)
@@ -7442,7 +7442,8 @@ static int dns_ai_setent(struct addrinfo **ent, union dns_any *any, enum dns_typ
switch (type) {
case DNS_T_A:
- saddr = memset(&sin, '\0', sizeof sin);
+ memset(&sin, '\0', sizeof sin);
+ saddr = (struct sockaddr *)&sin;
sin.sin_family = AF_INET;
sin.sin_port = htons(ai->port);
@@ -7454,7 +7455,8 @@ static int dns_ai_setent(struct addrinfo **ent, union dns_any *any, enum dns_typ
break;
case DNS_T_AAAA:
- saddr = memset(&sin6, '\0', sizeof sin6);
+ memset(&sin6, '\0', sizeof sin6);
+ saddr = (struct sockaddr *)&sin6;
sin6.sin6_family = AF_INET6;
sin6.sin6_port = htons(ai->port);
