diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 2af30be524..913c7c487e 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -7161,7 +7161,7 @@ static int vm_options(struct ast_channel *chan, struct ast_vm_user *vmu, struct if (cmd < 0) break; - if ((cmd = ast_readstring(chan, newpassword2 + strlen(newpassword2), sizeof(newpassword2) - 1, 2000, 10000, "#"))) { + if ((cmd = ast_readstring(chan,newpassword2 + strlen(newpassword2),sizeof(newpassword2) - 1, 2000, 10000, "#")) < 0) { break; } }