From: Brian West Date: Mon, 2 Nov 2009 23:28:55 +0000 (+0000) Subject: don't blow up if its null X-Git-Tag: v1.0.6~1534 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99f75241ce3b3abef26261fdeca7451e0f7bf494;p=thirdparty%2Ffreeswitch.git don't blow up if its null git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15323 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 596871c20d..d3a3edb95b 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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; }