diff options
author | Marvin W <git@larma.de> | 2021-11-09 22:06:50 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-11-10 11:05:34 +0100 |
commit | c9194973de629a74736d7b42add8b7f3e5c5085b (patch) | |
tree | dde0b62991f776841d9d0e4acf5d80ba7e5ca964 /plugins/ice | |
parent | 6fa5702e9c9f8201f923210a2a54790ba9bc3a69 (diff) | |
download | dino-c9194973de629a74736d7b42add8b7f3e5c5085b.tar.gz dino-c9194973de629a74736d7b42add8b7f3e5c5085b.zip |
Log when DTLS-SRTP has errors
Diffstat (limited to 'plugins/ice')
-rw-r--r-- | plugins/ice/src/transport_parameters.vala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/ice/src/transport_parameters.vala b/plugins/ice/src/transport_parameters.vala index cb9cea07..a91cc538 100644 --- a/plugins/ice/src/transport_parameters.vala +++ b/plugins/ice/src/transport_parameters.vala @@ -252,8 +252,12 @@ public class Dino.Plugins.Ice.TransportParameters : JingleIceUdp.IceUdpTransport if (stream_id != this.stream_id) return; uint8[] decrypt_data = null; if (dtls_srtp_handler != null) { - decrypt_data = dtls_srtp_handler.process_incoming_data(component_id, data); - if (decrypt_data == null) return; + try { + decrypt_data = dtls_srtp_handler.process_incoming_data(component_id, data); + if (decrypt_data == null) return; + } catch (Crypto.Error e) { + warning("%s while on_recv stream %u component %u", e.message, stream_id, component_id); + } } may_consider_ready(stream_id, component_id); if (connections.has_key((uint8) component_id)) { |