summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/mfa_session.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2011-11-28 22:13:28 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2011-11-28 22:13:28 +0000
commit791fa9e812bffdd1d18a422a95f1a38d088de2a0 (patch)
treec563cf0477adf6b70ca886381319a7616b986f80 /usr.sbin/smtpd/mfa_session.c
parent12153d2c7b20ffb704a75582c22d13633e38b361 (diff)
use STATUS_* filter codes, instead of -1/0/1 hard coded values
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/mfa_session.c')
-rw-r--r--usr.sbin/smtpd/mfa_session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/mfa_session.c b/usr.sbin/smtpd/mfa_session.c
index 4d92262a181..585dee20383 100644
--- a/usr.sbin/smtpd/mfa_session.c
+++ b/usr.sbin/smtpd/mfa_session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfa_session.c,v 1.5 2011/10/23 09:30:07 gilles Exp $ */
+/* $OpenBSD: mfa_session.c,v 1.6 2011/11/28 22:13:27 chl Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@openbsd.org>
@@ -144,7 +144,7 @@ mfa_session_proceed(struct mfa_session *ms)
void
mfa_session_pickup(struct mfa_session *ms)
{
- if (ms->fm.code == -1) {
+ if (ms->fm.code == STATUS_REJECT) {
mfa_session_fail(ms);
return;
}
@@ -288,7 +288,7 @@ mfa_session_imsg(int fd, short event, void *p)
ms->fm.code = fm.code;
/* success, overwrite */
- if (fm.code == 1)
+ if (fm.code == STATUS_ACCEPT)
ms->fm = fm;
mfa_session_pickup(ms);