diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 0011b3a7d9..1031132c87 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -1994,7 +1994,7 @@ static void voicemail_check_main(switch_core_session_t *session, const char *pro } if (!auth) { - if (switch_strlen_zero(cbt.password) && !strcmp(cbt.password, mypass)) { + if (!switch_strlen_zero(cbt.password) && !strcmp(cbt.password, mypass)) { auth++; } else if (!thepass) { auth++;