diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-10-26 09:22:04 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-10-26 09:22:04 +0000 |
commit | f5022089fc88d71297b34970860d613cb0ea161e (patch) | |
tree | e58e6bf408aa7b1d075cad52dd804a4639071430 /usr.sbin/smtpd/mda.c | |
parent | c46a7f20d507ff5b394f37ea986209c85bc1b838 (diff) |
avoid a potential double free
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/mda.c')
-rw-r--r-- | usr.sbin/smtpd/mda.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <gilles@poolp.org> @@ -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); |