aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-19 21:05:53 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-19 21:05:53 +0000
commit17cf4c0ff84484081c4869bdc175f6d74ecb44ad (patch)
tree06a21ff292cf6613bfda83b93cd781440f17bdf0 /apps
parent2fe7580e1d3d916b79adeda4d75797320174ef75 (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@34950 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 32e9f849e..96973623f 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -763,8 +763,10 @@ 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);
- if (!ast_safe_system(buf))
+ if (!ast_safe_system(buf)) {
+ reset_user_pw(vmu->context, vmu->mailbox, newpassword);
ast_copy_string(vmu->password, newpassword, sizeof(vmu->password));
+ }
}
static int make_dir(char *dest, int len, char *context, char *ext, char *mailbox)