summaryrefslogtreecommitdiff
path: root/mail/sendmail/files/patch-usersmtp.c
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2018-01-02 21:48:33 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2018-01-02 21:48:33 +0000
commitcc48fb988e2691cc4c74028ac85a8e2080148230 (patch)
treec1c980fcbf43f3bc2e61449a8eec3e10f45fdef1 /mail/sendmail/files/patch-usersmtp.c
parentUpgrade to v.218. (diff)
- fix regression introduced by r457706
PR: 224452 - add option BLACKLISTD https://reviews.freebsd.org/D13475
Notes
Notes: svn path=/head/; revision=457930
Diffstat (limited to '')
-rw-r--r--mail/sendmail/files/patch-usersmtp.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/mail/sendmail/files/patch-usersmtp.c b/mail/sendmail/files/patch-usersmtp.c
index 6223915df489..a50a11f3787e 100644
--- a/mail/sendmail/files/patch-usersmtp.c
+++ b/mail/sendmail/files/patch-usersmtp.c
@@ -1,26 +1,23 @@
---- sendmail/usersmtp.c.orig 2014-12-05 10:42:28.000000000 -0500
-+++ sendmail/usersmtp.c 2016-06-12 18:35:25.940865000 -0400
-@@ -1825,6 +1825,10 @@
+--- sendmail/usersmtp.c.orig 2014-12-05 15:42:28 UTC
++++ sendmail/usersmtp.c
+@@ -1825,6 +1825,9 @@ attemptauth(m, mci, e, sai)
if (saslresult != SASL_OK && saslresult != SASL_CONTINUE)
{
-+#ifdef USE_BLACKLIST
+ int fd = sm_io_getinfo(mci->mci_in, SM_IO_WHAT_FD, NULL);
-+ blacklist_notify(1, fd, "AUTH FAIL");
-+#endif
++ BLACKLIST_NOTIFY(BLACKLIST_AUTH_FAIL, fd, "AUTH FAIL");
++
if (tTd(95, 5))
sm_dprintf("AUTH FAIL=%s (%d)\n",
sasl_errstring(saslresult, NULL, NULL),
-@@ -1970,9 +1974,13 @@
+@@ -1970,9 +1973,11 @@ smtpauth(m, mci, e)
do
{
result = attemptauth(m, mci, e, &(mci->mci_sai));
- if (result == EX_OK)
+ if (result == EX_OK) {
-+#ifdef USE_BLACKLIST
+ int fd = sm_io_getinfo(mci->mci_in, SM_IO_WHAT_FD, NULL);
-+ blacklist_notify(0, fd, "AUTH OK");
-+#endif
++ BLACKLIST_NOTIFY(BLACKLIST_AUTH_OK, fd, "AUTH OK");
mci->mci_sasl_auth = true;
- else if (result == EX_TEMPFAIL || result == EX_NOPERM)
+ } else if (result == EX_TEMPFAIL || result == EX_NOPERM)