aboutsummaryrefslogtreecommitdiffstats
path: root/smtpd/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'smtpd/parse.y')
-rw-r--r--smtpd/parse.y6
1 files changed, 2 insertions, 4 deletions
diff --git a/smtpd/parse.y b/smtpd/parse.y
index b522d402..5cf4a24b 100644
--- a/smtpd/parse.y
+++ b/smtpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.197 2017/07/11 06:08:40 natano Exp $ */
+/* $OpenBSD: parse.y,v 1.199 2017/09/08 16:51:21 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -480,7 +480,7 @@ opt_if_listen : INET4 {
}
listen_opts.options |= LO_PORT;
- if ($2 <= 0 || $2 >= (int)USHRT_MAX) {
+ if ($2 <= 0 || $2 > (int)USHRT_MAX) {
yyerror("invalid port: %" PRId64, $2);
YYERROR;
}
@@ -1901,8 +1901,6 @@ parse_config(struct smtpd *x_conf, const char *filename, int opts)
table = NULL;
rule = NULL;
- dict_init(&conf->sc_filters);
-
dict_init(conf->sc_ca_dict);
dict_init(conf->sc_pki_dict);
dict_init(conf->sc_ssl_dict);