From: gilles Date: Wed, 28 Oct 2015 07:43:44 +0000 (+0000) Subject: remove old check on username length that simply makes no sense nowadays X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=720358979daa40c98be53f839fd1ac7c2ab225e4;p=openbsd remove old check on username length that simply makes no sense nowadays ok millert@ sunil@ --- 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 @@ -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: "