[vlc-devel] commit: vlc_inet_pton: fix return values - fix #1824 ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Aug 10 09:39:44 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Aug 10 10:41:28 2008 +0300| [e584675c5eb30e21b804476888f2e778612bc238] | committer: Rémi Denis-Courmont
vlc_inet_pton: fix return values - fix #1824
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e584675c5eb30e21b804476888f2e778612bc238
---
src/network/getaddrinfo.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/network/getaddrinfo.c b/src/network/getaddrinfo.c
index 5e70dec..23a0d25 100644
--- a/src/network/getaddrinfo.c
+++ b/src/network/getaddrinfo.c
@@ -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 */
More information about the vlc-devel
mailing list