diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-09 18:50:49 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-09 18:50:49 +0400 |
commit | b94138fc387a4ff991738db86a7064221ef25959 (patch) | |
tree | 92fa01bcc3c22e020afe3fa97d5a9d9e73205d32 /src/webui.c | |
parent | 823c263b9d417a9d28344c469b253e0dfe76e640 (diff) | |
download | rspamd-b94138fc387a4ff991738db86a7064221ef25959.tar.gz rspamd-b94138fc387a4ff991738db86a7064221ef25959.zip |
Copy hash table utility function.
Slight fix for /symbols handler.
Diffstat (limited to 'src/webui.c')
-rw-r--r-- | src/webui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webui.c b/src/webui.c index 7e3963b64..c7f734512 100644 --- a/src/webui.c +++ b/src/webui.c @@ -1350,7 +1350,7 @@ http_handle_save_symbols (struct evhttp_request *req, gpointer arg) val = json_number_value (jvalue); sym = g_hash_table_lookup (metric->symbols, json_string_value (jname)); if (sym && fabs (sym->score - val) > 0.01) { - if (!add_dynamic_symbol (ctx->cfg, DEFAULT_METRIC, sym->name, val)) { + if (!add_dynamic_symbol (ctx->cfg, DEFAULT_METRIC, json_string_value (jname), val)) { evbuffer_free (evb); json_delete (json); evhttp_send_reply (req, HTTP_INTERNAL, "506 cannot write symbol's value", NULL); |