aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-18 18:37:12 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-18 18:37:12 +0400
commit6a2422fe75904e8072bdf48502d0245f89e1a0e2 (patch)
tree2267c37d530df06d014d6e52c1c071379abc6ac3
parentbada3312a8c1c6cdca474e99c74babb759e65823 (diff)
downloadrspamd-6a2422fe75904e8072bdf48502d0245f89e1a0e2.tar.gz
rspamd-6a2422fe75904e8072bdf48502d0245f89e1a0e2.zip
Ref hash table at settings loading.
-rw-r--r--src/settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.c b/src/settings.c
index 1eb5da2d6..59b2a9ea6 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -85,7 +85,7 @@ json_read_cb (memory_pool_t * pool, u_char * chunk, size_t len, struct map_cb_da
if (data->cur_data == NULL) {
jb = g_malloc (sizeof (struct json_buf));
- jb->table = ((struct json_buf *)data->prev_data)->table;
+ jb->table = g_hash_table_ref (((struct json_buf *)data->prev_data)->table);
jb->buf = NULL;
jb->pos = NULL;
data->cur_data = jb;