]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't blow up if its null
authorBrian West <brian@freeswitch.org>
Mon, 2 Nov 2009 23:28:55 +0000 (23:28 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 2 Nov 2009 23:28:55 +0000 (23:28 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15323 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 596871c20d210b9091eb21841294e0b719fa846f..d3a3edb95b39fd2cfffa545000383e373f4310b1 100644 (file)
@@ -4451,7 +4451,7 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t
                                                                        moh = tmp;
                                                                }
                                                                
-                                                               if (!strcasecmp(moh, "silence")) {
+                                                               if (moh && !strcasecmp(moh, "silence")) {
                                                                        moh = NULL;
                                                                }