[farsight2/master] Return an error if a NULL cname is passed
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:20:24 PST 2008
---
gst/fsrtpconference/fs-rtp-conference.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-conference.c b/gst/fsrtpconference/fs-rtp-conference.c
index 6f5245c..1ae265b 100644
--- a/gst/fsrtpconference/fs-rtp-conference.c
+++ b/gst/fsrtpconference/fs-rtp-conference.c
@@ -425,6 +425,13 @@ fs_rtp_conference_new_participant (FsBaseConference *conf,
FsParticipant *new_participant = NULL;
GList *item = NULL;
+ if (!cname)
+ {
+ g_set_error (error, FS_ERROR, FS_ERROR_INVALID_ARGUMENTS,
+ "Invalid NULL cname");
+ return NULL;
+ }
+
GST_OBJECT_LOCK (self);
for (item = g_list_first (self->priv->participants);
item;
--
1.5.6.5
More information about the farsight-commits
mailing list