summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-09-26 07:24:10 +0000
committerhenning <henning@openbsd.org>2003-09-26 07:24:10 +0000
commit337b3cc9a51a6052770b6a3e8d8be68a06189c00 (patch)
tree65b6d9460a48281e0fecff91c651630ebf5022f2
parentCheck strdup() return value, as pointed out by deraadt@ (diff)
downloadwireguard-openbsd-337b3cc9a51a6052770b6a3e8d8be68a06189c00.tar.xz
wireguard-openbsd-337b3cc9a51a6052770b6a3e8d8be68a06189c00.zip
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.c5
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;
}