diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2018-09-04 17:19:01 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2018-09-04 17:19:01 +0000 |
commit | cb4ce5f7de42e62d6431a495d1f0d1c441ea90fa (patch) | |
tree | d5a242a5ef20368802039e4943478695d754d5c0 /usr.sbin/smtpd/mta_session.c | |
parent | 163f0b098d520eaea15d02c30c701635b427032a (diff) |
remove useless session flag
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/mta_session.c')
-rw-r--r-- | usr.sbin/smtpd/mta_session.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/mta_session.c b/usr.sbin/smtpd/mta_session.c index 02de77ea411..27b69c52a66 100644 --- a/usr.sbin/smtpd/mta_session.c +++ b/usr.sbin/smtpd/mta_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mta_session.c,v 1.107 2018/09/04 10:08:22 eric Exp $ */ +/* $OpenBSD: mta_session.c,v 1.108 2018/09/04 17:19:00 eric Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -80,7 +80,6 @@ enum mta_state { #define MTA_FORCE_TLS 0x0004 #define MTA_FORCE_PLAIN 0x0008 #define MTA_WANT_SECURE 0x0010 -#define MTA_USE_AUTH 0x0020 #define MTA_DOWNGRADE_PLAIN 0x0080 #define MTA_TLS 0x0100 @@ -198,8 +197,6 @@ mta_session(struct mta_relay *relay, struct mta_route *route) s->relay = relay; s->route = route; - if (relay->flags & RELAY_SSL && relay->flags & RELAY_AUTH) - s->flags |= MTA_USE_AUTH; if (relay->flags & RELAY_LMTP) s->flags |= MTA_LMTP; switch (relay->flags & (RELAY_SSL|RELAY_TLS_OPTIONAL)) { @@ -899,7 +896,7 @@ mta_response(struct mta_session *s, char *line) case MTA_EHLO: if (line[0] != '2') { /* rejected at ehlo state */ - if ((s->flags & MTA_USE_AUTH) || + if ((s->relay->flags & RELAY_AUTH) || (s->flags & MTA_WANT_SECURE)) { mta_error(s, "EHLO rejected: %s", line); s->flags |= MTA_FREE; |