From 49f060ff5ad7947f2625df8e7c1b944b2f0457a0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 14 Dec 2015 17:00:18 +0000 Subject: Some fixes to rspamadm control --- src/rspamadm/control.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rspamadm/control.c b/src/rspamadm/control.c index 42c17650a..979b7403f 100644 --- a/src/rspamadm/control.c +++ b/src/rspamadm/control.c @@ -90,6 +90,7 @@ static void rspamd_control_error_handler (struct rspamd_http_connection *conn, GError *err) { rspamd_fprintf (stderr, "Cannot make HTTP request: %e\n", err); + rspamd_http_connection_unref (conn); } static gint @@ -175,6 +176,13 @@ rspamadm_control (gint argc, gchar **argv) else if (g_ascii_strcasecmp (cmd, "reresolve") == 0) { path = "/reresolve"; } + else if (g_ascii_strcasecmp (cmd, "recompile") == 0) { + path = "/recompile"; + } + else if (g_ascii_strcasecmp (cmd, "fuzzystat") == 0 || + g_ascii_strcasecmp (cmd, "fuzzy_stat") == 0) { + path = "/fuzzystat"; + } else { rspamd_fprintf (stderr, "unknown command: %s\n", cmd); exit (1); -- cgit v1.2.3