diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-06-20 07:46:14 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-06-20 07:46:14 +0000 |
commit | 149375182984341c60c30e43791dc198497fc916 (patch) | |
tree | 36b762ae6d04c3239e2b7c112095ba83bcb2c50b /usr.sbin/smtpd | |
parent | 1d9712362828ff17e62469c2ad107cf14093337e (diff) |
Allocate memory for env->sc_ssl like in smtp; ok gilles@
From: Josh Elsasser <josh@elsasser.org>
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/mta.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <pyr@openbsd.org> @@ -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; |