summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2006-05-02 14:41:26 +0000
committerclaudio <claudio@openbsd.org>2006-05-02 14:41:26 +0000
commit4ec3d8e71b58cb4d26e204e7ae5ee5cdb14ac400 (patch)
tree3d7e9bc0150d9966aa546c24d73a756855bd6569
parentfix creation of sub-anchors, e.g. if you create an anchor /foo/bar, create (diff)
downloadwireguard-openbsd-4ec3d8e71b58cb4d26e204e7ae5ee5cdb14ac400.tar.xz
wireguard-openbsd-4ec3d8e71b58cb4d26e204e7ae5ee5cdb14ac400.zip
The pftable name to ID functions should use the pftable_labels list and not
the rt_labels list. Luckily this bug was not visible because of the way the pftable and rtlabel code works. Found by Thomas E. Spanjaard.
-rw-r--r--usr.sbin/bgpd/name2id.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/name2id.c b/usr.sbin/bgpd/name2id.c
index 58e41b42290..a6c09640b7c 100644
--- a/usr.sbin/bgpd/name2id.c
+++ b/usr.sbin/bgpd/name2id.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: name2id.c,v 1.6 2006/04/26 20:19:41 claudio Exp $ */
+/* $OpenBSD: name2id.c,v 1.7 2006/05/02 14:41:26 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -73,25 +73,25 @@ rtlabel_ref(u_int16_t id)
u_int16_t
pftable_name2id(const char *name)
{
- return (_name2id(&rt_labels, name));
+ return (_name2id(&pftable_labels, name));
}
const char *
pftable_id2name(u_int16_t id)
{
- return (_id2name(&rt_labels, id));
+ return (_id2name(&pftable_labels, id));
}
void
pftable_unref(u_int16_t id)
{
- _unref(&rt_labels, id);
+ _unref(&pftable_labels, id);
}
void
pftable_ref(u_int16_t id)
{
- _ref(&rt_labels, id);
+ _ref(&pftable_labels, id);
}
u_int16_t