From: Dušan Dragić Date: Sun, 3 Aug 2014 09:15:06 +0000 (+0200) Subject: FS-6620 mod_blacklist fix not deleting entries from list X-Git-Tag: v1.4.8~7^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe2a6e8acae2e8104c9480361b1561ee3f120bf1;p=thirdparty%2Ffreeswitch.git FS-6620 mod_blacklist fix not deleting entries from list --- diff --git a/src/mod/applications/mod_blacklist/mod_blacklist.c b/src/mod/applications/mod_blacklist/mod_blacklist.c index 1aa3c82a5c..4a8c022c47 100644 --- a/src/mod/applications/mod_blacklist/mod_blacklist.c +++ b/src/mod/applications/mod_blacklist/mod_blacklist.c @@ -246,7 +246,7 @@ SWITCH_STANDARD_API(blacklist_api_function) } switch_mutex_lock(bl->list_mutex); - switch_core_hash_insert(bl->list, argv[2], NULL); + switch_core_hash_delete(bl->list, argv[2]); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Removed [%s] from list [%s]\n", argv[2], argv[1]); switch_mutex_unlock(bl->list_mutex); stream->write_function(stream, "+OK\n");