summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2011-08-28 00:03:25 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2011-08-28 00:03:25 +0000
commit06a6fac5f981d96fb5320f0d9b604b8d505b9a90 (patch)
tree39b66debeedbb986f16a7d56569d4ae84b4f97e8 /usr.sbin
parentfa861d83988ecfb30d5ec6e3389e2e6ee0dedfae (diff)
fix pasto in strlcpy() truncation test
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/mfa_session.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/mfa_session.c b/usr.sbin/smtpd/mfa_session.c
index 6b1228e6433..fba1c027e1d 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.1 2011/08/27 22:32:41 gilles Exp $ */
+/* $OpenBSD: mfa_session.c,v 1.2 2011/08/28 00:03:24 gilles Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@openbsd.org>
@@ -106,20 +106,20 @@ mfa_session_proceed(struct mfa_session *ms)
case S_MAIL_MFA:
fm.type = FILTER_MAIL;
if (strlcpy(fm.u.mail.user, ms->ss.u.maddr.user,
- sizeof(ms->ss.u.maddr.user)) >= sizeof(ms->ss.u.maddr.user))
+ sizeof(fm.u.mail.user)) >= sizeof(fm.u.mail.user))
fatalx("mfa_session_proceed: MAIL: user truncation");
if (strlcpy(fm.u.mail.domain, ms->ss.u.maddr.domain,
- sizeof(ms->ss.u.maddr.domain)) >= sizeof(ms->ss.u.maddr.domain))
+ sizeof(fm.u.mail.domain)) >= sizeof(fm.u.mail.domain))
fatalx("mfa_session_proceed: MAIL: domain truncation");
break;
case S_RCPT_MFA:
fm.type = FILTER_RCPT;
if (strlcpy(fm.u.mail.user, ms->ss.u.maddr.user,
- sizeof(ms->ss.u.maddr.user)) >= sizeof(ms->ss.u.maddr.user))
+ sizeof(fm.u.mail.user)) >= sizeof(fm.u.mail.user))
fatalx("mfa_session_proceed: RCPT: user truncation");
if (strlcpy(fm.u.mail.domain, ms->ss.u.maddr.domain,
- sizeof(ms->ss.u.maddr.domain)) >= sizeof(ms->ss.u.maddr.domain))
+ sizeof(fm.u.mail.domain)) >= sizeof(fm.u.mail.domain))
fatalx("mfa_session_proceed: RCPT: domain truncation");
break;