From: op Date: Sun, 3 Dec 2023 11:50:50 +0000 (+0000) Subject: set the socket family too to mirror the LISTEN case; no-op in practice X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=627ac9367336130b7012f7d17c01d772f2cee157;p=openbsd set the socket family too to mirror the LISTEN case; no-op in practice since AF_UNSPEC is zero. --- diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index b5cddb909b9..38dea535596 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.294 2023/12/03 11:48:52 op Exp $ */ +/* $OpenBSD: parse.y,v 1.295 2023/12/03 11:50:50 op Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -3123,6 +3123,7 @@ parse_config(struct smtpd *x_conf, const char *filename, int opts) /* If the socket listener was not configured, create a default one. */ if (!conf->sc_sock_listener) { memset(&listen_opts, 0, sizeof listen_opts); + listen_opts.family = AF_UNSPEC; listen_opts.flags |= F_EXT_DSN; create_sock_listener(&listen_opts); }