[Asterisk-cvs] asterisk/apps app_voicemail.c,1.151.2.18,1.151.2.19
russell at lists.digium.com
russell at lists.digium.com
Mon Jul 11 21:26:02 CDT 2005
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv12704/apps
Modified Files:
Tag: v1-0
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.151.2.18
retrieving revision 1.151.2.19
diff -u -d -r1.151.2.18 -r1.151.2.19
--- app_voicemail.c 31 May 2005 13:08:45 -0000 1.151.2.18
+++ app_voicemail.c 12 Jul 2005 01:34:16 -0000 1.151.2.19
@@ -696,7 +696,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))
+ strncpy(vmu->password, newpassword, sizeof(vmu->password) - 1);
}
static int make_dir(char *dest, int len, char *context, char *ext, char *mailbox)
@@ -3995,7 +3996,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 */
More information about the svn-commits
mailing list