Fix a stupid error in my previous commit, which broke operation

of many nodes.

Pointy hat to:	glebius
This commit is contained in:
Gleb Smirnoff 2004-07-31 21:32:55 +00:00
parent 4b2e596e38
commit 6c97c0e45e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132939

View File

@ -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;