]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6620 mod_blacklist fix not deleting entries from list
authorDušan Dragić <dragic.dusan@gmail.com>
Sun, 3 Aug 2014 09:15:06 +0000 (11:15 +0200)
committerDušan Dragić <dragic.dusan@gmail.com>
Sun, 3 Aug 2014 09:51:46 +0000 (11:51 +0200)
src/mod/applications/mod_blacklist/mod_blacklist.c

index 1aa3c82a5c0fe58e87a7f36d3dd06d8a02feac40..4a8c022c4736b5a593d648b13e48bcae1b6b1728 100644 (file)
@@ -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");