Commit 54f16516 authored by Deucе's avatar Deucе 👌🏾
Browse files

Fix bugs in last commit... continue abusing the CI infra.

parent f97d9649
Pipeline #727 failed with stage
in 2 minutes and 36 seconds
......@@ -536,7 +536,7 @@ DLLEXPORT int inet_pton(int af, const char *src, void *dst)
if(getaddrinfo(addr_str, NULL, &hints, &res))
if(getaddrinfo(src, NULL, &hints, &res))
return -1;
for(cur = res; cur; cur++) {
......@@ -549,10 +549,10 @@ DLLEXPORT int inet_pton(int af, const char *src, void *dst)
switch(af) {
case AF_INET:
memcpy(dst, ((struct sockaddr_in *)(cur->sin_addr)), sizeof((struct sockaddr_in *)cur->sin_addr));
memcpy(dst, (((struct sockaddr_in *)cur)->sin_addr), sizeof(((struct sockaddr_in *)cur)->sin_addr));
case AF_INET6:
memcpy(dst, ((struct sockaddr_in6 *)(cur->sin6_addr)), sizeof((struct sockaddr_in6 *)cur->sin6_addr));
memcpy(dst, (((struct sockaddr_in6 *)cur)->sin6_addr), sizeof(((struct sockaddr_in6 *)cur)->sin6_addr));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment