diff options
author | 2017-02-13 12:43:43 +0000 | |
---|---|---|
committer | 2017-02-13 12:43:43 +0000 | |
commit | 084b6ef3b01d51911c965e70a8ae6fd8f7454f88 (patch) | |
tree | 6300cf6c6bb07417b9b9fbbbeccc7b68deeded58 | |
parent | allow negation of authenticated keyword: (diff) | |
download | wireguard-openbsd-084b6ef3b01d51911c965e70a8ae6fd8f7454f88.tar.xz wireguard-openbsd-084b6ef3b01d51911c965e70a8ae6fd8f7454f88.zip |
fix incoming tls-require regression, introduced with last parse.y cleanup
causing the flag not to be propagated down to the listener
ok eric@
-rw-r--r-- | usr.sbin/smtpd/parse.y | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index 9a7df4e7a49..e92a07b837b 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.194 2017/02/13 12:23:47 gilles Exp $ */ +/* $OpenBSD: parse.y,v 1.195 2017/02/13 12:43:43 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -2230,6 +2230,9 @@ config_listener(struct listener *h, struct listen_opts *lo) if (lo->ssl & F_TLS_VERIFY) h->flags |= F_TLS_VERIFY; + if (lo->ssl & F_STARTTLS_REQUIRE) + h->flags |= F_STARTTLS_REQUIRE; + if (h != conf->sc_sock_listener) TAILQ_INSERT_TAIL(conf->sc_listeners, h, entry); } |