summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/dead-name.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdiskfs/dead-name.c b/libdiskfs/dead-name.c
index 3d9a2ffd..966e1a4b 100644
--- a/libdiskfs/dead-name.c
+++ b/libdiskfs/dead-name.c
@@ -34,6 +34,7 @@ ports_dead_name (void *notify, mach_port_t dead_name)
if (dead_name == np->sockaddr)
{
mach_port_deallocate (mach_task_self (), np->sockaddr);
+ np->sockaddr = MACH_PORT_NULL;
diskfs_nput (np);
}
else