From 54ca64387a2ceb284dc45608d7825f081761532e Mon Sep 17 00:00:00 2001 From: Eric Faurot Date: Thu, 21 Nov 2013 08:52:58 +0000 Subject: correctly set verify flag on the listener --- usr.sbin/smtpd/parse.y | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.sbin/smtpd') 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 @@ -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 * -- cgit v1.2.3