diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2013-11-21 08:52:58 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2013-11-21 08:52:58 +0000 |
commit | 54ca64387a2ceb284dc45608d7825f081761532e (patch) | |
tree | 3141f16b8882ba1aea3891c4d05c4a3d1efb9cb8 /usr.sbin/smtpd/parse.y | |
parent | a60e478d85e751a9a8ec99e9984ced71909cc3d6 (diff) |
correctly set verify flag on the listener
Diffstat (limited to 'usr.sbin/smtpd/parse.y')
-rw-r--r-- | usr.sbin/smtpd/parse.y | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index 52f47b5c3f9..79dfa80e877 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.129 2013/11/20 09:22:42 eric Exp $ */ +/* $OpenBSD: parse.y,v 1.130 2013/11/21 08:52:57 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -1721,7 +1721,6 @@ create_listener(struct listenerlist *ll, struct listen_opts *lo) flags = lo->flags; - if (lo->port) { lo->flags = lo->ssl|lo->auth|flags; lo->port = htons(lo->port); @@ -1782,6 +1781,9 @@ config_listener(struct listener *h, struct listen_opts *lo) (void)strlcpy(h->hostname, lo->hostname, sizeof(h->hostname)); if (lo->hostnametable) (void)strlcpy(h->hostnametable, lo->hostnametable->t_name, sizeof(h->hostnametable)); + + if (lo->ssl & F_TLS_VERIFY) + h->flags |= F_TLS_VERIFY; } struct listener * |