From 871cc585b1498d8c495afa67e9adcb293c18f7b7 Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Wed, 6 Jul 2022 15:26:43 +0300 Subject: [PATCH] [mod_voicemail] fix vm_fsdb_msg_list --- src/mod/applications/mod_voicemail/mod_voicemail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 1768f59585..0dc84b34ce 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -5430,7 +5430,7 @@ SWITCH_STANDARD_API(vm_fsdb_msg_list_function) if (!msg_order) { msg_order = "ASC"; - } else if (strcasecmp(msg_order, "ASC") || strcasecmp(msg_order, "DESC")) { + } else if (strcasecmp(msg_order, "ASC") && strcasecmp(msg_order, "DESC")) { stream->write_function(stream, "-ERR Bad Argument: '%s'\n", msg_order); goto done; }