aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/xep/0176_jingle_ice_udp
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp-vala/src/module/xep/0176_jingle_ice_udp')
-rw-r--r--xmpp-vala/src/module/xep/0176_jingle_ice_udp/transport_parameters.vala6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/xep/0176_jingle_ice_udp/transport_parameters.vala b/xmpp-vala/src/module/xep/0176_jingle_ice_udp/transport_parameters.vala
index 490cc125..53057d9e 100644
--- a/xmpp-vala/src/module/xep/0176_jingle_ice_udp/transport_parameters.vala
+++ b/xmpp-vala/src/module/xep/0176_jingle_ice_udp/transport_parameters.vala
@@ -39,7 +39,11 @@ public abstract class Xmpp.Xep.JingleIceUdp.IceUdpTransportParameters : Jingle.T
remote_pwd = node.get_attribute("pwd");
remote_ufrag = node.get_attribute("ufrag");
foreach (StanzaNode candidateNode in node.get_subnodes("candidate")) {
- remote_candidates.add(Candidate.parse(candidateNode));
+ try {
+ remote_candidates.add(Candidate.parse(candidateNode));
+ } catch (Jingle.IqError e) {
+ warning("Ignoring invalid candidate %s: %s", candidateNode.to_string(), e.message);
+ }
}
StanzaNode? fingerprint_node = node.get_subnode("fingerprint", DTLS_NS_URI);