From c41033e83ce5bb3b583853d19f2adcc78d3b48e6 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 25 Apr 2020 20:13:08 +0200 Subject: [PATCH] only take udp candidates from transport-info --- .../conversations/xmpp/jingle/stanzas/IceUdpTransportInfo.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/stanzas/IceUdpTransportInfo.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/stanzas/IceUdpTransportInfo.java index 1e7ada424..a56f60d93 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/stanzas/IceUdpTransportInfo.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/stanzas/IceUdpTransportInfo.java @@ -194,6 +194,9 @@ public class IceUdpTransportInfo extends GenericTransportInfo { checkNotNullNoWhitespace(component, "component"); final String transport = this.getAttribute("protocol"); checkNotNullNoWhitespace(transport, "protocol"); + if (!"udp".equals(transport)) { + throw new IllegalArgumentException(String.format("'%s' is not a supported protocol", transport)); + } final String priority = this.getAttribute("priority"); checkNotNullNoWhitespace(priority, "priority"); final String connectionAddress = this.getAttribute("ip");