aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_socket.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2004-07-31 21:32:55 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2004-07-31 21:32:55 +0000
commit6c97c0e45ec09ac03b3746d48ddced32322d2a13 (patch)
tree08757749699f0299c358f8c86fcf1442a121695e /sys/netgraph/ng_socket.c
parent4b2e596e389eed26811ed9e78e2bdf308ca6644c (diff)
Notes
Diffstat (limited to 'sys/netgraph/ng_socket.c')
-rw-r--r--sys/netgraph/ng_socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c
index 6f60a1c7f715..8fdfc6b76098 100644
--- a/sys/netgraph/ng_socket.c
+++ b/sys/netgraph/ng_socket.c
@@ -288,7 +288,8 @@ printf("errx=%d\n",error);
* try to load it. We need to do this now, in syscall thread, because if
* message gets queued and applied later we will get panic.
*/
- if (msg->header.cmd == NGM_MKPEER) {
+ if (msg->header.typecookie == NGM_GENERIC_COOKIE &&
+ msg->header.cmd == NGM_MKPEER) {
struct ngm_mkpeer *const mkp = (struct ngm_mkpeer *) msg->data;
struct ng_type *type;