about summary refs log tree commit diff
path: root/hurd/port2fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/port2fd.c')
-rw-r--r--hurd/port2fd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hurd/port2fd.c b/hurd/port2fd.c
index 063f27b66e..16a5af04a4 100644
--- a/hurd/port2fd.c
+++ b/hurd/port2fd.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -67,6 +67,7 @@ _hurd_port2fd (struct hurd_fd *d, io_t port, int flags)
     mach_port_t old
       = _hurd_userlink_clear (&d->port.users) ? d->port.port : MACH_PORT_NULL;
     d->port.port = port;
+    d->flags = 0;
     if (old != MACH_PORT_NULL)
       __mach_port_deallocate (__mach_task_self (), old);
   }