mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
update the password in memory as well when using externpass (bug #4602)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6094 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -696,7 +696,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))
|
||||
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 @@ 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 */
|
||||
|
||||
|
Reference in New Issue
Block a user