FS-5434 --resolve

This commit is contained in:
Jeff Lenk 2013-05-17 21:38:32 -05:00
parent 2bafe135c0
commit de0fea316e
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ SWITCH_STANDARD_API(blacklist_api_function)
filename = switch_core_hash_find(globals.files, argv[1]);
switch_mutex_unlock(globals.files_mutex);
if (!bl) {
if (!bl || !filename) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unknown blacklist [%s]\n", argv[1]);
stream->write_function(stream, "-ERR Unknown blacklist\n");
goto done;