From a0d739928b6ca8ebe37a8e446066215dbf0c342c Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 26 Oct 2015 09:22:03 +0000 Subject: [PATCH] avoid a potential double free ok gilles@ --- usr.sbin/smtpd/mda.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/smtpd/mda.c b/usr.sbin/smtpd/mda.c index 0ea145f087d..e2989387552 100644 --- a/usr.sbin/smtpd/mda.c +++ b/usr.sbin/smtpd/mda.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mda.c,v 1.110 2015/10/11 12:09:06 sunil Exp $ */ +/* $OpenBSD: mda.c,v 1.111 2015/10/26 09:22:03 jsg Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -511,6 +511,7 @@ mda_io(struct io *io, int evt) } free(ln); + ln = NULL; if (ferror(s->datafp)) { log_debug("debug: mda: ferror on session %016"PRIx64, s->id); -- 2.20.1