From 477b739fdff7b205b1b6066a2685c0924fc0ea9f Mon Sep 17 00:00:00 2001
From: Justus Winter <justus@gnupg.org>
Date: Thu, 24 Aug 2017 11:07:32 +0200
Subject: eth-multiplexer: Fix type check.

* eth-multiplexer/device_impl.c (ds_device_open): Check the port
class.
---
 eth-multiplexer/device_impl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'eth-multiplexer')

diff --git a/eth-multiplexer/device_impl.c b/eth-multiplexer/device_impl.c
index f23738a1..d7c8beeb 100644
--- a/eth-multiplexer/device_impl.c
+++ b/eth-multiplexer/device_impl.c
@@ -51,7 +51,8 @@ ds_device_open (mach_port_t master_port, mach_port_t reply_port,
 	 	mach_msg_type_name_t *devicetype)
 {
   struct vether_device *dev;
-  struct protid *pi = ports_lookup_port (netfs_port_bucket, master_port, 0);
+  struct protid *pi = ports_lookup_port (netfs_port_bucket, master_port,
+                                         netfs_protid_class);
   if (pi == NULL)
     return D_NO_SUCH_DEVICE;
 
-- 
cgit v1.2.3