diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-06-24 18:25:16 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-06-24 18:25:16 +0400 |
commit | 9727678e705943da9e44130ce485b1bdab0a8e96 (patch) | |
tree | 082bbaaed64cce1e790ace55981b36a3344c621e /src/protocol.h | |
parent | bae6d9e54d8bb711144fbcf7dde1b155f471b1cd (diff) | |
download | rspamd-9727678e705943da9e44130ce485b1bdab0a8e96.tar.gz rspamd-9727678e705943da9e44130ce485b1bdab0a8e96.zip |
* Check return value of each rspamd_dispatcher_write as in case of write errors sessions can be destroyed early
Diffstat (limited to 'src/protocol.h')
-rw-r--r-- | src/protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.h b/src/protocol.h index 4c12cc481..d45e5c555 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -64,7 +64,7 @@ int read_rspamd_input_line (struct worker_task *task, f_str_t *line); * @param task task object * @return 0 if we wrote reply and -1 if there was some error */ -int write_reply (struct worker_task *task); +gboolean write_reply (struct worker_task *task) G_GNUC_WARN_UNUSED_RESULT; /** |