-/* $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>
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: "