From: Brian West Date: Sat, 6 Sep 2008 18:00:35 +0000 (+0000) Subject: fix timer_name check in rtp X-Git-Tag: v1.0.2~1282 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d70241a4131b6c0a9e6fa49d60684d374d4389a8;p=thirdparty%2Ffreeswitch.git fix timer_name check in rtp git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9472 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index ae86120759..f30fccd311 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -798,7 +798,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_create(switch_rtp_t **new_rtp_session rtp_session->ms_per_packet = ms_per_packet; rtp_session->samples_per_interval = rtp_session->conf_samples_per_interval = samples_per_interval; - if (!strcasecmp(timer_name, "none")) { + if (timer_name && !strcasecmp(timer_name, "none")) { timer_name = NULL; }