diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-01-30 21:52:56 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-01-30 21:52:56 +0000 |
commit | 3227121c77a9f3359c21cefe580a085c77bf3c9e (patch) | |
tree | 9e14d65fb6a53725a26be07d9358a6b5cdd06edb /usr.sbin/smtpd/smtp_session.c | |
parent | 8452589c8ddef50efc571850d1c840f2f09e4ed9 (diff) |
when decreasing ssl related counters, make sure the session was flagged as
F_SECURE. while at it, add "smtp.sessions.aborted" which keeps track of
sessions which were interrupted before completion.
Diffstat (limited to 'usr.sbin/smtpd/smtp_session.c')
-rw-r--r-- | usr.sbin/smtpd/smtp_session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c index 7d890bf93ab..408765b1663 100644 --- a/usr.sbin/smtpd/smtp_session.c +++ b/usr.sbin/smtpd/smtp_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtp_session.c,v 1.51 2009/01/30 21:40:21 gilles Exp $ */ +/* $OpenBSD: smtp_session.c,v 1.52 2009/01/30 21:52:55 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -947,6 +947,7 @@ session_error(struct bufferevent *bev, short event, void *p) * but set F_QUIT flag so that we destroy it as * soon as the event lock is removed. */ + s_smtp.aborted++; if (s->s_flags & F_EVLOCKED) s->s_flags |= F_QUIT; else |