[farsight2/master] Verify if ca exists before dereferencing it

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:22:51 PST 2008


---
 gst/fsrtpconference/fs-rtp-codec-negotiation.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
index 2ae56e2..b048a15 100644
--- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c
+++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
@@ -438,7 +438,7 @@ create_local_codec_associations (
         lca->codec->id, TRUE);
 
     /* Same blueprint, we've copied the ID voluntarily, continue */
-    if (tmpca->blueprint == lca->blueprint)
+    if (tmpca && tmpca->blueprint == lca->blueprint)
       continue;
 
     /* If we have a different blueprint or a ANY id, we have to get a new id */
-- 
1.5.6.5




More information about the farsight-commits mailing list