[commit] r6053 - freeswitch/trunk/src/mod/applications/mod_voicemail
Author: anthm Date: Thu Oct 25 13:49:42 2007 New Revision: 6053 Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c Log: add memset to prevent race Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c (original) +++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c Thu Oct 25 13:49:42 2007 @@ -1651,10 +1651,12 @@ } } - if (!strcasecmp(buf, profile->main_menu_key)) { - voicemail_check_main(session, profile_name, domain_name, id, 0); - } else { - goto greet; + if (!switch_strlen_zero(buf)) { + if (!strcasecmp(buf, profile->main_menu_key)) { + voicemail_check_main(session, profile_name, domain_name, id, 0); + } else { + goto greet; + } }
participants (1)
-
Freeswitch SVN