diff options
author | Omar Polo <op@cvs.openbsd.org> | 2023-12-03 11:50:51 +0000 |
---|---|---|
committer | Omar Polo <op@cvs.openbsd.org> | 2023-12-03 11:50:51 +0000 |
commit | a78013af5772e2b7211c2202b1d52716cd39554d (patch) | |
tree | f3e40ccbc9e1aae498086c93294659ef329c0e88 /usr.sbin/smtpd | |
parent | be23463625b73627d72203d24c5e6c2291ff19dc (diff) |
set the socket family too to mirror the LISTEN case; no-op in practice
since AF_UNSPEC is zero.
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
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 <gilles@poolp.org> @@ -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); } |