Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Unified Diff: webrtc/voice_engine/test/channel_transport/udp_transport_impl.cc

Issue 2606383003: UdpTransport:IsIpAddressValid: Added extra :: check for ipv6 (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/test/channel_transport/udp_transport_impl.cc
diff --git a/webrtc/voice_engine/test/channel_transport/udp_transport_impl.cc b/webrtc/voice_engine/test/channel_transport/udp_transport_impl.cc
index e265c1e84c3aeea6bf09d74f46309e9b5ac3e7f2..c44cf9e17258caeb61844f984886a04b2a89b376 100644
--- a/webrtc/voice_engine/test/channel_transport/udp_transport_impl.cc
+++ b/webrtc/voice_engine/test/channel_transport/udp_transport_impl.cc
@@ -2875,6 +2875,10 @@ bool UdpTransport::IsIpAddressValid(const char* ipadr, const bool ipV6)
{
return false;
}
+ if(nColons < 7 && nDubbleColons == 0)
+ {
+ return false;
+ }
if(!(nDots == 3 || nDots == 0))
{
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698