From 99cb83cd06ca693a032616361bd0b1ae1efabdba Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 3 Feb 2011 15:52:12 +0300 Subject: [PATCH] Do not try to print result when connection failed in rspamc. --- src/client/rspamc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/rspamc.c b/src/client/rspamc.c index 874c72074..12985abf2 100644 --- a/src/client/rspamc.c +++ b/src/client/rspamc.c @@ -317,6 +317,7 @@ scan_rspamd_file (const gchar *file) g_hash_table_destroy (opts); if (err != NULL) { fprintf (stderr, "cannot scan message: %s\n", err->message); + return; } print_rspamd_result (res); if (res) { -- 2.39.5