summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2015-12-12 12:34:52 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2015-12-12 12:34:52 +0000
commit13dc197810b1b7ba2cd01e2f9685c57a187456e5 (patch)
treeebf7806dabb762afde1ac2dea651d0df17447f5c /usr.sbin/smtpd
parente9a1077c4da3a42d2ee93af24af5edc9b9557e03 (diff)
add missing check for failed allocation
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y
index 942c9bcd168..3c016d3456d 100644
--- a/usr.sbin/smtpd/parse.y
+++ b/usr.sbin/smtpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.170 2015/12/12 12:28:04 gilles Exp $ */
+/* $OpenBSD: parse.y,v 1.171 2015/12/12 12:34:51 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -1836,6 +1836,7 @@ parse_config(struct smtpd *x_conf, const char *filename, int opts)
conf->sc_listeners == NULL ||
conf->sc_ca_dict == NULL ||
conf->sc_pki_dict == NULL ||
+ conf->sc_ssl_dict == NULL ||
conf->sc_limits_dict == NULL) {
log_warn("warn: cannot allocate memory");
free(conf->sc_tables_dict);