]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_voicemail] Fix voicemail ignoring vm-a1-hash
authorMartin Paterson <61424351+MartinJPaterson@users.noreply.github.com>
Tue, 28 Dec 2021 16:02:02 +0000 (16:02 +0000)
committerGitHub <noreply@github.com>
Tue, 28 Dec 2021 16:02:02 +0000 (19:02 +0300)
src/mod/applications/mod_voicemail/mod_voicemail.c

index 8f8384fab1bb0a468b6d161570eafc387d43074e..1768f59585dc12ecefc03dd398f35811daead5f5 100644 (file)
@@ -2583,7 +2583,7 @@ static void voicemail_check_main(switch_core_session_t *session, vm_profile_t *p
                                if (!auth) {
                                        if (!zstr(cbt.password) && !strcmp(cbt.password, mypass)) {
                                                auth++;
-                                       } else if (!thepass && profile->allow_empty_password_auth) {
+                                       } else if (!thehash && !thepass && profile->allow_empty_password_auth) {
                                                auth++;
                                        }