Commit e584675c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_inet_pton: fix return values - fix #1824

parent 55ae0bf3
......@@ -705,7 +705,7 @@ int vlc_inet_pton (int af, const char *src, void *dst)
}, *res;
if (getaddrinfo (src, NULL, &hints, &res))
return -1;
return 0;
const void *data;
size_t len;
......@@ -726,7 +726,7 @@ int vlc_inet_pton (int af, const char *src, void *dst)
return -1;
}
memcpy (dst, data, len);
return 0;
return 1;
#else /* HAVE_INET_PTON */
return inet_pton( af, src, dst );
#endif /* HAVE_INET_PTON */
......
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