remove old check on username length that simply makes no sense nowadays
authorgilles <gilles@openbsd.org>
Wed, 28 Oct 2015 07:43:44 +0000 (07:43 +0000)
committergilles <gilles@openbsd.org>
Wed, 28 Oct 2015 07:43:44 +0000 (07:43 +0000)
ok millert@ sunil@

usr.sbin/smtpd/lka_session.c

index 28e9dd2..e9ccf44 100644 (file)
@@ -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: "