projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3a8855e
)
network - Add initializer for ifnet.if_groups.
author
Joe Talbott <josepht@dragonflybsd.org>
Wed, 3 Nov 2010 18:29:47 +0000 (14:29 -0400)
committer
Joe Talbott <josepht@dragonflybsd.org>
Wed, 3 Nov 2010 18:34:22 +0000 (14:34 -0400)
Prevents a NULL pointer dereference when pfsync is compiled into the
kernel.
Reported-By: mat on Efnet#dragonflybsd
Tested-By: mat on Efnet#dragonflybsd
sys/net/if.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/net/if.c
b/sys/net/if.c
index
53dfe6c
..
2e051be
100644
(file)
--- a/
sys/net/if.c
+++ b/
sys/net/if.c
@@
-543,6
+543,7
@@
if_attach(struct ifnet *ifp, lwkt_serialize_t serializer)
TAILQ_INIT(&ifp->if_prefixhead);
TAILQ_INIT(&ifp->if_multiaddrs);
+ TAILQ_INIT(&ifp->if_groups);
getmicrotime(&ifp->if_lastchange);
if (ifindex2ifnet == NULL || if_index >= if_indexlim) {
unsigned int n;