projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16c5ee5
)
update the password in memory as well when using externpass (bug #4602)
author
Russell Bryant
<russell@russellbryant.com>
Tue, 12 Jul 2005 01:30:55 +0000
(
01:30
+0000)
committer
Russell Bryant
<russell@russellbryant.com>
Tue, 12 Jul 2005 01:30:55 +0000
(
01:30
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6092
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_voicemail.c
patch
|
blob
|
history
diff --git
a/apps/app_voicemail.c
b/apps/app_voicemail.c
index
6b7573f
..
daa7d86
100755
(executable)
--- a/
apps/app_voicemail.c
+++ b/
apps/app_voicemail.c
@@
-662,7
+662,8
@@
static void vm_change_password_shell(struct ast_vm_user *vmu, char *newpassword)
{
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
@@
static int load_config(void)
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 */