From 47fe5736c1dc076ca872d8a3259e41bd7627942a Mon Sep 17 00:00:00 2001 From: "vikasmarwaha@webrtc.org" Date: Fri, 15 Feb 2013 18:42:12 +0000 Subject: [PATCH] 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 --- webrtc/modules/udp_transport/source/udp_transport_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/udp_transport/source/udp_transport_impl.cc b/webrtc/modules/udp_transport/source/udp_transport_impl.cc index b4c927947f..b7ded87463 100644 --- a/webrtc/modules/udp_transport/source/udp_transport_impl.cc +++ b/webrtc/modules/udp_transport/source/udp_transport_impl.cc @@ -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);