From: Vsevolod Stakhov Date: Tue, 3 Jan 2017 16:44:38 +0000 (+0000) Subject: [Fix] Fix assertion in graph handling X-Git-Tag: 1.5.0~432 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb2cc650c62de4f5fd077649bdaa1a8bc1e04595;p=thirdparty%2Frspamd.git [Fix] Fix assertion in graph handling --- diff --git a/src/controller.c b/src/controller.c index cfb2df3a96..b780e3c4cf 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1136,7 +1136,7 @@ rspamd_controller_handle_graph ( struct rspamd_rrd_query_result *rrd_result; gulong i, k, start_row, cnt, t, ts, step; gdouble *acc; - ucl_object_t *res, *elt[4]; + ucl_object_t *res, *elt[METRIC_ACTION_MAX]; enum { rra_hourly = 0, rra_daily, @@ -2566,7 +2566,6 @@ rspamd_controller_rrd_update (gint fd, short what, void *arg) gdouble points[METRIC_ACTION_MAX]; GError *err = NULL; guint i; - gdouble val; g_assert (ctx->rrd != NULL); stat = ctx->srv->stat;