From: Vsevolod Stakhov Date: Thu, 3 Feb 2011 12:52:12 +0000 (+0300) Subject: Do not try to print result when connection failed in rspamc. X-Git-Tag: 0.3.7~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=99cb83cd06ca693a032616361bd0b1ae1efabdba;p=rspamd.git Do not try to print result when connection failed in rspamc. --- 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) {