From 2afe124ff64d7d37ca53a3b2fd63e596f0080373 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 25 Oct 2007 17:36:06 +0000 Subject: [PATCH] add memset to prevent race git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6052 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_voicemail/mod_voicemail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 0773fabdcd..b494da2d81 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -1632,7 +1632,7 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, char file_path = switch_mprintf("%s%smsg_%s.%s", dir_path, SWITCH_PATH_SEPARATOR, uuid, profile->file_ext); greet: - + memset(buf, 0, sizeof(buf)); args.input_callback = cancel_on_dtmf; args.buf = buf; args.buflen = sizeof(buf);