diff options
author | glebius <glebius@FreeBSD.org> | 2004-07-31 21:32:55 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2004-07-31 21:32:55 +0000 |
commit | 900350dd1b8d0c711f44a96c690aba2081bc30b5 (patch) | |
tree | 08757749699f0299c358f8c86fcf1442a121695e /sys/netgraph/ng_socket.c | |
parent | e0a971d6d49e38038831751385b0647c72460f0a (diff) | |
download | FreeBSD-src-900350dd1b8d0c711f44a96c690aba2081bc30b5.zip FreeBSD-src-900350dd1b8d0c711f44a96c690aba2081bc30b5.tar.gz |
Fix a stupid error in my previous commit, which broke operation
of many nodes.
Pointy hat to: glebius
Diffstat (limited to 'sys/netgraph/ng_socket.c')
-rw-r--r-- | sys/netgraph/ng_socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c index 6f60a1c..8fdfc6b 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; |