diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-09-26 07:24:11 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-09-26 07:24:11 +0000 |
commit | b2f2ee0d7d481462e7de9de8ed5bcd770d95bbb2 (patch) | |
tree | 5da7829d742006bde3719ac25d9a0d66809d86f2 | |
parent | 284f3f8048a92363d901c1304cb336543887a33b (diff) |
erm, committing to teh right repository helps sometimes.
don't reject usernames > 15 chars; username is not used as ruleset name any
more, thus, this restriction is gone.
PR3491, fix from dhartmei
-rw-r--r-- | usr.sbin/authpf/authpf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c index 8828ffc2f37..8275309d265 100644 --- a/usr.sbin/authpf/authpf.c +++ b/usr.sbin/authpf/authpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authpf.c,v 1.68 2003/08/21 19:13:23 frantzen Exp $ */ +/* $OpenBSD: authpf.c,v 1.69 2003/09/26 07:24:10 henning Exp $ */ /* * Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org). @@ -582,8 +582,7 @@ change_filter(int add, const char *luser, const char *ipsrc) struct pfioc_rule pr[PF_RULESET_MAX]; int i; - if (luser == NULL || !luser[0] || strlen(luser) >= - PF_RULESET_NAME_SIZE || ipsrc == NULL || !ipsrc[0]) { + if (luser == NULL || !luser[0] || ipsrc == NULL || !ipsrc[0]) { syslog(LOG_ERR, "invalid luser/ipsrc"); goto error; } |