From 30aa4c51c65df40481fff21f50fba2db339cb82a Mon Sep 17 00:00:00 2001 From: timando Date: Thu, 31 Aug 2023 12:44:24 +1000 Subject: [PATCH] Update mod_voicemail.c --- src/mod/applications/mod_voicemail/mod_voicemail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 98e3607243..b2974d1eef 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -209,14 +209,14 @@ const char * mwi_reason2str(mwi_reason_t state) switch_status_t vm_file_exists(const char *filename, switch_memory_pool_t *pool) { //If filename is a URL, assume it exists - if(strstr(filename, "://")) return SWITCH_STATUS_SUCCESS; + if(filename && strstr(filename, "://")) return SWITCH_STATUS_SUCCESS; return switch_file_exists(filename, pool); } switch_status_t vm_dir_make_recursive(const char *path, switch_fileperms_t perm, switch_memory_pool_t *pool) { //If path is a url e.g. mod_http_cache, assume success - if(strstr(path, "://")) return SWITCH_STATUS_SUCCESS; + if(path && strstr(path, "://")) return SWITCH_STATUS_SUCCESS; return switch_dir_make_recursive(path, perm, pool); }