From: Vsevolod Stakhov Date: Mon, 1 Sep 2014 13:17:25 +0000 (+0100) Subject: Fix output of symbols. X-Git-Tag: 0.7.0~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=541a05e49829089dfd90364abc7808b1bb0b659c;p=thirdparty%2Frspamd.git Fix output of symbols. --- diff --git a/src/controller.c b/src/controller.c index 5794eca2fa..8a821aa43a 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;