summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2009-06-02 22:23:37 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2009-06-02 22:23:37 +0000
commitdcf4d397824201f96011cdae0bf8db8860a85df8 (patch)
tree499682f491ea5777c737758785a34638e96cf4f5 /usr.sbin/smtpd/smtpd.c
parent6e04978c7e3739302d4ccea71b6ea1f7b31259ae (diff)
make env->sc_listeners and env->sc_ssl pointers, one step further toward
configuration reloading without killing active sessions; ok jacekm@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r--usr.sbin/smtpd/smtpd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c
index 6d1ed99425b..d59ae8b6b59 100644
--- a/usr.sbin/smtpd/smtpd.c
+++ b/usr.sbin/smtpd/smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.c,v 1.71 2009/06/01 18:24:01 deraadt Exp $ */
+/* $OpenBSD: smtpd.c,v 1.72 2009/06/02 22:23:36 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -136,7 +136,7 @@ parent_send_config_listeners(struct smtpd *env)
imsg_compose(env->sc_ibufs[PROC_SMTP], IMSG_CONF_START,
0, 0, -1, NULL, 0);
- SPLAY_FOREACH(s, ssltree, &env->sc_ssl) {
+ SPLAY_FOREACH(s, ssltree, env->sc_ssl) {
if (!(s->flags & F_SCERT))
continue;
@@ -151,7 +151,7 @@ parent_send_config_listeners(struct smtpd *env)
iov, nitems(iov));
}
- TAILQ_FOREACH(l, &env->sc_listeners, entry) {
+ TAILQ_FOREACH(l, env->sc_listeners, entry) {
if ((l->fd = socket(l->ss.ss_family, SOCK_STREAM, 0)) == -1)
fatal("socket");
opt = 1;
@@ -177,7 +177,7 @@ parent_send_config_client_certs(struct smtpd *env)
imsg_compose(env->sc_ibufs[PROC_MTA], IMSG_CONF_START,
0, 0, -1, NULL, 0);
- SPLAY_FOREACH(s, ssltree, &env->sc_ssl) {
+ SPLAY_FOREACH(s, ssltree, env->sc_ssl) {
if (!(s->flags & F_CCERT))
continue;