Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNPUTmice/Conversations.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2022-08-10 10:11:09 +0300
committerDaniel Gultsch <daniel@gultsch.de>2022-08-10 10:11:09 +0300
commitfe3433e427d7d271fb1baf0e0a071550550ff9e9 (patch)
tree139794ea2033685a072f015d5a59bd7fb50ac5d0
parent508e1ac1bd22d16503a1d05150317d783ac83c0b (diff)
do not accept empty credentials as ice-restart
-rw-r--r--src/main/java/eu/siacs/conversations/xmpp/jingle/RtpContentMap.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/RtpContentMap.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/RtpContentMap.java
index e95a7e36d..e7693d6a8 100644
--- a/src/main/java/eu/siacs/conversations/xmpp/jingle/RtpContentMap.java
+++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/RtpContentMap.java
@@ -182,6 +182,9 @@ public class RtpContentMap {
final IceUdpTransportInfo.Credentials credentials =
Iterables.getFirst(allCredentials, null);
if (allCredentials.size() == 1 && credentials != null) {
+ if (Strings.isNullOrEmpty(credentials.password) || Strings.isNullOrEmpty(credentials.ufrag)) {
+ throw new IllegalStateException("Credentials are missing password or ufrag");
+ }
return credentials;
}
throw new IllegalStateException("Content map does not have distinct credentials");