mirror of git://sourceware.org/git/glibc.git
(__mig_dealloc_reply_port): Only attempt to destroy PORT if it's a valid port name.
This commit is contained in:
parent
2e516341fa
commit
aa0e1b599c
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
/* Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -52,6 +52,8 @@ __mig_dealloc_reply_port (mach_port_t arg)
|
||||||
|
|
||||||
port = reply_port;
|
port = reply_port;
|
||||||
reply_port = MACH_PORT_NULL; /* So the mod_refs RPC won't use it. */
|
reply_port = MACH_PORT_NULL; /* So the mod_refs RPC won't use it. */
|
||||||
|
|
||||||
|
if (MACH_PORT_VALID (port))
|
||||||
__mach_port_mod_refs (__mach_task_self (), port,
|
__mach_port_mod_refs (__mach_task_self (), port,
|
||||||
MACH_PORT_RIGHT_RECEIVE, -1);
|
MACH_PORT_RIGHT_RECEIVE, -1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue