Bug fix for webrtc issue 1391. Typo in sin_length for socket address.
Review URL: https://webrtc-codereview.appspot.com/1108004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3524 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
b4cd342eb9
commit
47fe5736c1
@ -1398,7 +1398,7 @@ UdpTransportImpl::ErrorCode UdpTransportImpl::BindLocalRTPSocket()
|
||||
{
|
||||
SocketAddress stLclName;
|
||||
#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
|
||||
stLclName.sin_lenght = 0;
|
||||
stLclName.sin_length = 0;
|
||||
stLclName.sin_family = PF_INET6;
|
||||
#else
|
||||
stLclName._sockaddr_storage.sin_family = PF_INET6;
|
||||
@ -2561,7 +2561,7 @@ WebRtc_Word32 UdpTransport::LocalHostAddressIPV6(char n_localIP[16])
|
||||
req.r.ifa_family = AF_INET6;
|
||||
|
||||
// Fill up all the attributes for the rtnetlink header.
|
||||
// The lenght is very important. 16 signifies the ipv6 address.
|
||||
// The length is very important. 16 signifies the ipv6 address.
|
||||
rta = (struct rtattr*)(((char*)&req) + NLMSG_ALIGN(req.n.nlmsg_len));
|
||||
rta->rta_len = RTA_LENGTH(16);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user