aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Bauersachs <ingo@jitsi.org>2016-12-27 22:34:08 +0100
committerIngo Bauersachs <ingo@jitsi.org>2016-12-27 22:34:08 +0100
commit9ffda8db84eac97151430f95ae0d6ce46fb6a157 (patch)
tree0b19b4c94fb874dd30b5f296cf4f12a7ae0bc6d3
parent402ad5c9e7fa9af06fbb9152ec8d693f62228b38 (diff)
downloadjitsi-9ffda8db84eac97151430f95ae0d6ce46fb6a157.zip
jitsi-9ffda8db84eac97151430f95ae0d6ce46fb6a157.tar.gz
jitsi-9ffda8db84eac97151430f95ae0d6ce46fb6a157.tar.bz2
Ignore invalid ICE candidates
-rw-r--r--src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java b/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java
index d326b96..7305f5c 100644
--- a/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java
+++ b/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java
@@ -1000,6 +1000,12 @@ public class IceUdpTransportManager
if (candidate.getGeneration() != generation)
continue;
+ if (candidate.getIP() == null || "".equals(candidate.getIP()))
+ {
+ logger.warn("Skipped ICE candidate with empty IP");
+ continue;
+ }
+
Component component
= stream.getComponent(candidate.getComponent());
String relAddr;