diff options
author | 2013-11-21 08:52:57 +0000 | |
---|---|---|
committer | 2013-11-21 08:52:57 +0000 | |
commit | 78d5f296a169cb0a3a4fd4075c7b3b99a003f768 (patch) | |
tree | ef82158849fc7181be9164c06286a1629299998f | |
parent | fail if lka can't load cert file (diff) | |
download | wireguard-openbsd-78d5f296a169cb0a3a4fd4075c7b3b99a003f768.tar.xz wireguard-openbsd-78d5f296a169cb0a3a4fd4075c7b3b99a003f768.zip |
correctly set verify flag on the listener
-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 * |