From 149375182984341c60c30e43791dc198497fc916 Mon Sep 17 00:00:00 2001 From: Jacek Masiulaniec Date: Sat, 20 Jun 2009 07:46:14 +0000 Subject: Allocate memory for env->sc_ssl like in smtp; ok gilles@ From: Josh Elsasser --- usr.sbin/smtpd/mta.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.sbin/smtpd') diff --git a/usr.sbin/smtpd/mta.c b/usr.sbin/smtpd/mta.c index 6ce27978bed..cf8a23f721f 100644 --- a/usr.sbin/smtpd/mta.c +++ b/usr.sbin/smtpd/mta.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mta.c,v 1.60 2009/06/07 05:56:25 eric Exp $ */ +/* $OpenBSD: mta.c,v 1.61 2009/06/20 07:46:13 jacekm Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard @@ -109,6 +109,9 @@ mta_dispatch_parent(int sig, short event, void *p) if (env->sc_flags & SMTPD_CONFIGURING) break; env->sc_flags |= SMTPD_CONFIGURING; + + if ((env->sc_ssl = calloc(1, sizeof(*env->sc_ssl))) == NULL) + fatal("mta_dispatch_parent: calloc"); break; case IMSG_CONF_SSL: { struct ssl *s; -- cgit v1.2.3