[farsight2/master] Add check on NULL ca in copy function
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:22:40 PST 2008
---
gst/fsrtpconference/fs-rtp-codec-negotiation.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
index 63e27ea..7515ac1 100644
--- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c
+++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
@@ -649,6 +649,8 @@ codec_association_copy (CodecAssociation *ca)
{
CodecAssociation *newca = g_slice_new (CodecAssociation);
+ g_return_val_if_fail (ca, NULL);
+
memcpy (newca, ca, sizeof(CodecAssociation));
newca->codec = fs_codec_copy (ca->codec);
--
1.5.6.5
More information about the farsight-commits
mailing list