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

Undo [18814]

parent 2fe4ada3
......@@ -949,15 +949,10 @@ static int ParseSDPConnection (const char *str, struct sockaddr_storage *addr,
# endif
*addrlen = sizeof (struct sockaddr_in6);
#if defined(WIN32) || defined(UNDER_CE)
if( WSAStringToAddressA(host, AF_INET6, NULL,
(LPSOCKADDR)addr, addrlen) )
return -1;
#else
if (inet_pton (AF_INET6, host,
&((struct sockaddr_in6 *)addr)->sin6_addr) <= 0)
return -1;
#endif
*number = (res >= 3) ? n1 : 1;
break;
#endif
......@@ -969,15 +964,9 @@ static int ParseSDPConnection (const char *str, struct sockaddr_storage *addr,
# endif
*addrlen = sizeof (struct sockaddr_in);
#if defined(WIN32) || defined(UNDER_CE)
if( WSAStringToAddressA(host, AF_INET, NULL,
(LPSOCKADDR)addr, addrlen) )
return -1;
#else
if (inet_pton (AF_INET, host,
&((struct sockaddr_in *)addr)->sin_addr) <= 0)
return -1;
#endif
*number = (res >= 4) ? n2 : 1;
break;
......
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