diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-03 15:52:12 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-03 15:52:12 +0300 |
commit | 99cb83cd06ca693a032616361bd0b1ae1efabdba (patch) | |
tree | 82a223737dc9a25ca2a6522b10749121a76a78ca | |
parent | 4f8ce164b2c8a8e86db5ca00a29086d91e11febe (diff) | |
download | rspamd-99cb83cd06ca693a032616361bd0b1ae1efabdba.tar.gz rspamd-99cb83cd06ca693a032616361bd0b1ae1efabdba.zip |
Do not try to print result when connection failed in rspamc.
-rw-r--r-- | src/client/rspamc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |