diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2018-12-09 17:08:53 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2018-12-09 17:08:53 +0000 |
commit | bf300220ab49a7506e3e2e156f6fd08f7bd304c7 (patch) | |
tree | 5aa1376e98d965edeceeaa76b43c04bbadbcd9a7 /usr.sbin/smtpd | |
parent | fc96347aa7bcc43ac2a14a9517e37a14f6fc7bca (diff) |
unbreak builtin filters after last simplification in smtp_session
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/smtp_session.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c index 761c94f658b..39bb4a03481 100644 --- a/usr.sbin/smtpd/smtp_session.c +++ b/usr.sbin/smtpd/smtp_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtp_session.c,v 1.364 2018/12/09 16:37:51 gilles Exp $ */ +/* $OpenBSD: smtp_session.c,v 1.365 2018/12/09 17:08:52 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -1659,7 +1659,7 @@ smtp_filter_phase(enum filter_phase phase, struct smtp_session *s, const char *p s->filter_phase = phase; s->filter_param = param; - if (!SESSION_FILTERED(s)) { + if (SESSION_FILTERED(s)) { smtp_query_filters(phase, s, param ? param : ""); return; } @@ -1668,6 +1668,7 @@ smtp_filter_phase(enum filter_phase phase, struct smtp_session *s, const char *p smtp_proceed_connected(s); return; } + for (i = 0; i < nitems(commands); ++i) if (commands[i].filter_phase == s->filter_phase) { commands[i].proceed(s, param); |