Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv12657/apps

Modified Files:
        app_voicemail.c 
Log Message:
update the password in memory as well when using externpass (bug #4602)


Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.223
retrieving revision 1.224
diff -u -d -r1.223 -r1.224
--- app_voicemail.c     12 Jul 2005 01:04:54 -0000      1.223
+++ app_voicemail.c     12 Jul 2005 01:30:55 -0000      1.224
@@ -662,7 +662,8 @@
 {
        char buf[255];
        snprintf(buf,255,"%s %s %s 
%s",ext_pass_cmd,vmu->context,vmu->mailbox,newpassword);
-       ast_safe_system(buf);
+       if (!ast_safe_system(buf))
+               ast_copy_string(vmu->password, newpassword, 
sizeof(vmu->password));
 }
 
 static int make_dir(char *dest, int len, char *context, char *ext, char 
*mailbox)
@@ -5446,7 +5447,7 @@
        zonesl = NULL;
        users = NULL;
        usersl = NULL;
-       memset(ext_pass_cmd, 0, sizeof(ext_pass_cmd) - 1);
+       memset(ext_pass_cmd, 0, sizeof(ext_pass_cmd));
        if (cfg) {
                /* General settings */
 

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to