Skip to content
Permalink
Browse files Browse the repository at this point in the history
smtpd's filter state machine can prematurely release resources
leading to a crash.  From gilles@
  • Loading branch information
millert committed Dec 23, 2020
1 parent a02f695 commit 6c32204
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions 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>
Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 6c32204

Please sign in to comment.