]> source.dussan.org Git - rspamd.git/commitdiff
Do not try to print result when connection failed in rspamc.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 3 Feb 2011 12:52:12 +0000 (15:52 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 3 Feb 2011 12:52:12 +0000 (15:52 +0300)
src/client/rspamc.c

index 874c720742b948973a94eab926a469328ce67650..12985abf26bcc822ebb8700c999bec4305606bf8 100644 (file)
@@ -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) {