From 541a05e49829089dfd90364abc7808b1bb0b659c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 1 Sep 2014 14:17:25 +0100 Subject: [PATCH] Fix output of symbols. --- src/controller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller.c b/src/controller.c index 5794eca2f..8a821aa43 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1214,8 +1214,8 @@ rspamd_controller_handle_savesymbols ( obj = ucl_parser_get_object (parser); ucl_parser_free (parser); - if (obj->type != UCL_ARRAY || obj->len != 3) { - msg_err ("input is not an array of 3 elements"); + if (obj->type != UCL_ARRAY) { + msg_err ("input is not an array"); rspamd_controller_send_error (conn_ent, 400, "Cannot parse input"); ucl_object_unref (obj); return 0; -- 2.39.5