diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index a1102ac0994904c426eabdf6ee6ffa39429ea559..8e6e4117937acb7e944b87552a492519432bd63d 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -475,7 +475,7 @@ static struct ast_vm_user *find_user(struct ast_vm_user *ivm, const char *contex vmu = malloc(sizeof(struct ast_vm_user)); if (vmu) { memcpy(vmu, cur, sizeof(struct ast_vm_user)); - ast_set2_flag(vmu, ivm, VM_ALLOCED); + ast_set2_flag(vmu, !ivm, VM_ALLOCED); vmu->next = NULL; } } else