diff options
author | 2012-09-11 15:05:49 +0000 | |
---|---|---|
committer | 2012-09-11 15:05:49 +0000 | |
commit | d9e7f95867b11b5c2d64f80ffc04d9c50b63646b (patch) | |
tree | c7ca22d7a922330b5cf5c45aa867a8736ff333df | |
parent | log the process name and place when calling fatal(). (diff) | |
download | wireguard-openbsd-d9e7f95867b11b5c2d64f80ffc04d9c50b63646b.tar.xz wireguard-openbsd-d9e7f95867b11b5c2d64f80ffc04d9c50b63646b.zip |
remove the session entry from the search tree when it's dead.
ok gilles@
-rw-r--r-- | usr.sbin/smtpd/mta_session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/mta_session.c b/usr.sbin/smtpd/mta_session.c index f66222342f5..f2b0101f5ed 100644 --- a/usr.sbin/smtpd/mta_session.c +++ b/usr.sbin/smtpd/mta_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mta_session.c,v 1.14 2012/08/30 18:16:25 eric Exp $ */ +/* $OpenBSD: mta_session.c,v 1.15 2012/09/11 15:05:49 eric Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -396,6 +396,7 @@ mta_enter_state(struct mta_session *s, int newstate) free(host); } route = s->route; + tree_xpop(&sessions, s->id); free(s); stat_decrement("mta.session", 1); mta_route_collect(route); |