summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/rspamc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index f5b1bae61..fb995288d 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -1727,7 +1727,7 @@ rspamc_process_input (struct ev_loop *ev_base, struct rspamc_command *cmd,
else {
rspamd_fprintf (stderr, "cannot connect to %s: %s\n", connect_str,
strerror (errno));
- exit (-errno);
+ exit (EXIT_FAILURE);
}
g_free (hostbuf);