summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2020-12-23 20:17:50 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2020-12-23 20:17:50 +0000
commitb55f6e2edabba371f6f77d6f3b7378cade1fcfa3 (patch)
tree176c4ac4a41a0b7339362fa9efdfa4847db10990
parent1187e8687c616991f8e14133d9338834dfdb6be2 (diff)
smtpd's filter state machine can prematurely release resources
leading to a crash. From gilles@
-rw-r--r--usr.sbin/smtpd/lka_filter.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/smtpd/lka_filter.c b/usr.sbin/smtpd/lka_filter.c
index 21b10ce1033..d1194254d8d 100644
--- a/usr.sbin/smtpd/lka_filter.c
+++ b/usr.sbin/smtpd/lka_filter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lka_filter.c,v 1.64 2020/12/20 13:27:46 martijn Exp $ */
+/* $OpenBSD: lka_filter.c,v 1.65 2020/12/23 20:17:49 millert Exp $ */
/*
* Copyright (c) 2018 Gilles Chehade <gilles@poolp.org>
@@ -600,11 +600,6 @@ filter_session_io(struct io *io, int evt, void *arg)
filter_data(fs->id, line);
goto nextline;
-
- case IO_DISCONNECTED:
- io_free(fs->io);
- fs->io = NULL;
- break;
}
}