summaryrefslogtreecommitdiff
path: root/sys/net/pf_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/pf_if.c')
-rw-r--r--sys/net/pf_if.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net/pf_if.c b/sys/net/pf_if.c
index 60f16b9beeb..34d9168fc6e 100644
--- a/sys/net/pf_if.c
+++ b/sys/net/pf_if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_if.c,v 1.16 2004/07/04 22:56:52 henning Exp $ */
+/* $OpenBSD: pf_if.c,v 1.17 2004/07/11 15:22:22 mcbride Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -221,6 +221,11 @@ pfi_lookup_create(const char *name)
if (p == NULL) {
pfi_copy_group(key.pfik_name, name, sizeof(key.pfik_name));
q = pfi_lookup_if(key.pfik_name);
+ if (q == NULL) {
+ pfi_newgroup(key.pfik_name, PFI_IFLAG_DYNAMIC);
+ q = pfi_lookup_if(key.pfik_name);
+ }
+ q = pfi_lookup_if(key.pfik_name);
if (q != NULL)
p = pfi_if_create(name, q, PFI_IFLAG_INSTANCE);
}