diff options
author | 2015-10-28 07:43:44 +0000 | |
---|---|---|
committer | 2015-10-28 07:43:44 +0000 | |
commit | 720358979daa40c98be53f839fd1ac7c2ab225e4 (patch) | |
tree | dedcf02bc1e32da204277307adbf625953d09c2a | |
parent | dns_lookup_host() needs to remove brackets and IPv6: prefix when receiving (diff) | |
download | wireguard-openbsd-720358979daa40c98be53f839fd1ac7c2ab225e4.tar.xz wireguard-openbsd-720358979daa40c98be53f839fd1ac7c2ab225e4.zip |
remove old check on username length that simply makes no sense nowadays
ok millert@ sunil@
-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: " |