summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/lka.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/smtpd/lka.c')
-rw-r--r--usr.sbin/smtpd/lka.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/lka.c b/usr.sbin/smtpd/lka.c
index ce3bc2944f8..192f83cf333 100644
--- a/usr.sbin/smtpd/lka.c
+++ b/usr.sbin/smtpd/lka.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lka.c,v 1.100 2010/02/17 13:47:31 gilles Exp $ */
+/* $OpenBSD: lka.c,v 1.101 2010/02/17 17:27:47 gilles Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -1031,7 +1031,7 @@ lka_resolve_path(struct smtpd *env, struct lkasession *lkasession, struct path *
return 1;
}
- if (strlen(username) >= MAX_LOCALPART_SIZE)
+ if (strlen(username) >= MAXLOGNAME)
return 0;
path->flags |= F_PATH_ACCOUNT;