diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2015-10-28 07:43:45 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2015-10-28 07:43:45 +0000 |
commit | f53f1ac71a041ca8a55a9d9aeab95cddbbec0401 (patch) | |
tree | d39e0a8c6a9a55317eb3ad1f2aa25e245927664e /usr.sbin/smtpd | |
parent | 938893832b3e64d00af0061ee574c675fccb0634 (diff) |
remove old check on username length that simply makes no sense nowadays
ok millert@ sunil@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/lka_session.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.sbin/smtpd/lka_session.c b/usr.sbin/smtpd/lka_session.c index 28e9dd220aa..e9ccf447de4 100644 --- a/usr.sbin/smtpd/lka_session.c +++ b/usr.sbin/smtpd/lka_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka_session.c,v 1.72 2015/10/28 07:25:30 gilles Exp $ */ +/* $OpenBSD: lka_session.c,v 1.73 2015/10/28 07:43:44 gilles Exp $ */ /* * Copyright (c) 2011 Gilles Chehade <gilles@poolp.org> @@ -378,14 +378,6 @@ lka_expand(struct lka_session *lks, struct rule *rule, struct expandnode *xn) break; } - /* A username should not exceed the size of a system user */ - if (strlen(xn->u.user) >= sizeof fwreq.user) { - log_trace(TRACE_EXPAND, "expand: lka_expand: " - "user-part too long to be a system user"); - lks->error = LKA_PERMFAIL; - break; - } - r = table_lookup(rule->r_userbase, NULL, xn->u.user, K_USERINFO, &lk); if (r == -1) { log_trace(TRACE_EXPAND, "expand: lka_expand: " |