summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2017-08-24 11:07:32 +0200
committerJustus Winter <justus@gnupg.org>2017-08-24 16:20:44 +0200
commit477b739fdff7b205b1b6066a2685c0924fc0ea9f (patch)
treead8ea4c4662c961ea56c33c148ea8485706c5423
parent4076a4d3bd380a287fcc0bc9e3d1d573b29714cb (diff)
eth-multiplexer: Fix type check.
* eth-multiplexer/device_impl.c (ds_device_open): Check the port class.
-rw-r--r--eth-multiplexer/device_impl.c3
1 files changed, 2 insertions, 1 deletions
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;