summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-03-28 16:47:39 +0000
committerhenning <henning@openbsd.org>2003-03-28 16:47:39 +0000
commit1a6d03f38f5e59c2280fff301608936126ad88c6 (patch)
tree06876c3605183f82a082ea22e913ef85786d4362
parentsync (diff)
downloadwireguard-openbsd-1a6d03f38f5e59c2280fff301608936126ad88c6.tar.xz
wireguard-openbsd-1a6d03f38f5e59c2280fff301608936126ad88c6.zip
assign qid early for priq too
-rw-r--r--sbin/pfctl/pfctl_altq.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c
index 54e7f735f65..f537fbe996e 100644
--- a/sbin/pfctl/pfctl_altq.c
+++ b/sbin/pfctl/pfctl_altq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_altq.c,v 1.46 2003/03/11 14:02:12 henning Exp $ */
+/* $OpenBSD: pfctl_altq.c,v 1.47 2003/03/28 16:47:39 henning Exp $ */
/*
* Copyright (C) 2002
@@ -596,6 +596,9 @@ eval_pfqueue_priq(struct pfctl *pf, struct pf_altq *pa)
}
}
+ /* qid is tied to priority with priq */
+ pa->qid = pa->priority + 1;
+
return (0);
}