diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-14 13:50:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-14 13:50:33 +0000 |
commit | 818e3f818179bd737087cba6abd0484b17f68932 (patch) | |
tree | 89030720c6c75f66806cb98a4318f0cb51900621 | |
parent | dd1b49fbdbf49b16fbb16df44f307e62c122ba1b (diff) | |
download | rspamd-818e3f818179bd737087cba6abd0484b17f68932.tar.gz rspamd-818e3f818179bd737087cba6abd0484b17f68932.zip |
[Minor] Fix set_reply signature
-rw-r--r-- | src/libserver/milter.c | 6 | ||||
-rw-r--r-- | src/libserver/milter.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c index fcdbcae6c..372359258 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -1138,8 +1138,8 @@ rspamd_milter_handle_socket (gint fd, const struct timeval *tv, gboolean rspamd_milter_set_reply (struct rspamd_milter_session *session, - rspamd_fstring_t *xcode, rspamd_fstring_t *rcode, + rspamd_fstring_t *xcode, rspamd_fstring_t *reply) { GString *buf; @@ -1935,7 +1935,7 @@ rspamd_milter_send_task_results (struct rspamd_milter_session *session, } } - rspamd_milter_set_reply (session, xcode, rcode, reply); + rspamd_milter_set_reply (session, rcode, xcode, reply); } break; case METRIC_ACTION_SOFT_REJECT: @@ -1949,7 +1949,7 @@ rspamd_milter_send_task_results (struct rspamd_milter_session *session, sizeof (RSPAMD_MILTER_TEMPFAIL_MESSAGE) - 1); } - rspamd_milter_set_reply (session, xcode, rcode, reply); + rspamd_milter_set_reply (session, rcode, xcode, reply); break; case METRIC_ACTION_REWRITE_SUBJECT: diff --git a/src/libserver/milter.h b/src/libserver/milter.h index 7f375b018..10bf34d52 100644 --- a/src/libserver/milter.h +++ b/src/libserver/milter.h @@ -98,14 +98,14 @@ void * rspamd_milter_update_userdata (struct rspamd_milter_session *session, /** * Sets SMTP reply string * @param session - * @param xcode * @param rcode + * @param xcode * @param reply * @return */ gboolean rspamd_milter_set_reply (struct rspamd_milter_session *session, - rspamd_fstring_t *xcode, rspamd_fstring_t *rcode, + rspamd_fstring_t *xcode, rspamd_fstring_t *reply); /** |