From: Michael Jerris Date: Tue, 17 Mar 2009 16:28:16 +0000 (+0000) Subject: mod_voicemail: fix password check (MODAPP-234) X-Git-Tag: v1.0.4~1493 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7618dfbe1cf1509a9f145b6fe973432907e62b73;p=thirdparty%2Ffreeswitch.git mod_voicemail: fix password check (MODAPP-234) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12644 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index dcae6c13ff..5c339a5d5a 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -2075,20 +2075,20 @@ static void voicemail_check_main(switch_core_session_t *session, const char *pro const char *val = switch_xml_attr_soft(x_param, "value"); if (!strcasecmp(var, "a1-hash")) { - thehash = val; + thehash = switch_core_session_strdup(session, val); } else if (!strcasecmp(var, "vm-a1-hash")) { - vmhash = val; + vmhash = switch_core_session_strdup(session, val); } else if (!auth && !thepass && !strcasecmp(var, "password")) { - thepass = val; + thepass = switch_core_session_strdup(session, val); } else if (!auth && !strcasecmp(var, "vm-password")) { if (!switch_strlen_zero(val) && !strcasecmp(val, "user-choose")) { if (switch_strlen_zero(cbt.password)) { auth = 1; } else { - thepass = val; + thepass = switch_core_session_strdup(session, val); } } else { - thepass = val; + thepass = switch_core_session_strdup(session, val); } } else if (!strcasecmp(var, "vm-mailto")) { vm_email = switch_core_session_strdup(session, val);