]> 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:31:08 +0000 (23:31 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 2 Nov 2009 23:31:08 +0000 (23:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15324 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index d3a3edb95b39fd2cfffa545000383e373f4310b1..6a991e8ca98a90e7809129e9e01487697a132264 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 (moh && !strcasecmp(moh, "silence")) {
+                                                               if (!zstr(moh) && !strcasecmp(moh, "silence")) {
                                                                        moh = NULL;
                                                                }