[Freeswitch-svn] [commit] r12644 - freeswitch/trunk/src/mod/applications/mod_voicemail

FreeSWITCH SVN mikej at freeswitch.org
Tue Mar 17 09:28:16 PDT 2009


Author: mikej
Date: Tue Mar 17 11:28:16 2009
New Revision: 12644

Log:
mod_voicemail: fix password check (MODAPP-234)

Modified:
   freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c

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	Tue Mar 17 11:28:16 2009
@@ -2075,20 +2075,20 @@
 					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);



More information about the Freeswitch-svn mailing list