commit 818e3f8: [Minor] Fix set_reply signature
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Mar 14 13:56:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-03-14 13:50:33 +0000
URL: https://github.com/rspamd/rspamd/commit/818e3f818179bd737087cba6abd0484b17f68932 (HEAD -> master)
[Minor] Fix set_reply signature
---
src/libserver/milter.c | 6 +++---
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);
/**
More information about the Commits
mailing list