From 3350ea8b5bab0707d06d3ee4fa2df264e368b49b Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 15 Oct 2023 08:51:06 +0200 Subject: [PATCH] ensure we are in session accepted when processing content-modify --- .../siacs/conversations/xmpp/jingle/JingleRtpConnection.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java index af6d219b0..e080b2a35 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java @@ -563,7 +563,10 @@ public class JingleRtpConnection extends AbstractJingleConnection } private void receiveContentModify(final JinglePacket jinglePacket) { - // TODO check session accepted + if (this.state != State.SESSION_ACCEPTED) { + terminateWithOutOfOrder(jinglePacket); + return; + } final Map modification = Maps.transformEntries( jinglePacket.getJingleContents(), (key, value) -> value.getSenders());