diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-01-30 21:22:34 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-01-30 21:22:34 +0000 |
commit | 5328220112c6a2ede4995eb893b771f763c4dc4f (patch) | |
tree | 3022196b45d93c50a8d6f6d0fed2ffec17e1ad9a /usr.sbin/smtpd/smtpd.h | |
parent | 02bfd51be8dc8fa6a4b9f1fd9d040b5f937310b7 (diff) |
clear the F_EVLOCK flag earlier to prevent the error event handler from
being called again with F_EVLOCK set. this fixes a bug where disconnect
after smtpd sends greeting and before entering any command failed to go
into session_destroy().
while at it, rename the "smtp.clients" statistic to "smtp.sessions" and
add counters to struct s_smtp so that I can add ssmtp and starttls with
my next commit ;)
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r-- | usr.sbin/smtpd/smtpd.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h index e2446f51438..fb9924fe721 100644 --- a/usr.sbin/smtpd/smtpd.h +++ b/usr.sbin/smtpd/smtpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.h,v 1.65 2009/01/30 20:11:13 form Exp $ */ +/* $OpenBSD: smtpd.h,v 1.66 2009/01/30 21:22:33 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -655,7 +655,9 @@ struct s_runner { }; struct s_smtp { - size_t clients; + size_t sessions; + size_t ssmtp; + size_t starttls; }; struct stats { |