[farsight2/master] Safeguard against malformed GstRTPBinSDES messages
Olivier Crête
olivier.crete at collabora.co.uk
Tue May 12 09:07:20 PDT 2009
---
gst/fsrtpconference/fs-rtp-conference.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-conference.c b/gst/fsrtpconference/fs-rtp-conference.c
index e95a567..285f06e 100644
--- a/gst/fsrtpconference/fs-rtp-conference.c
+++ b/gst/fsrtpconference/fs-rtp-conference.c
@@ -702,6 +702,14 @@ fs_rtp_conference_handle_message (
cname = gst_structure_get_string (s, "cname");
+ if (!ssrc || !cname)
+ {
+ GST_WARNING_OBJECT (self,
+ "Got GstRTPBinSDES without a ssrc or a cname (ssrc:%u cname:%p)",
+ ssrc, cname);
+ break;
+ }
+
session = fs_rtp_conference_get_session_by_id (self, session_id);
if (session) {
--
1.5.6.5
More information about the farsight-commits
mailing list