diff options
-rw-r--r-- | libtrivfs/ChangeLog | 6 | ||||
-rw-r--r-- | libtrivfs/migsupport.c | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/libtrivfs/ChangeLog b/libtrivfs/ChangeLog index 973f4ece..c561d330 100644 --- a/libtrivfs/ChangeLog +++ b/libtrivfs/ChangeLog @@ -1,3 +1,9 @@ +Fri Aug 16 19:24:45 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> + + * migsupport.c (trivfs_end_using_protid): Only call + ports_port_deref if CRED is set. + (trivfs_end_using_control): Likewise. + Thu Aug 15 16:14:33 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * io-pathconf.c (trivfs_S_io_pathconf): Implement by calling diff --git a/libtrivfs/migsupport.c b/libtrivfs/migsupport.c index 14e28231..66c03482 100644 --- a/libtrivfs/migsupport.c +++ b/libtrivfs/migsupport.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994, 1995 Free Software Foundation + Copyright (C) 1994, 1995, 1996 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -37,7 +37,8 @@ trivfs_begin_using_protid (mach_port_t port) void trivfs_end_using_protid (struct trivfs_protid *cred) { - ports_port_deref (cred); + if (cred) + ports_port_deref (cred); } struct trivfs_control * @@ -60,5 +61,6 @@ trivfs_begin_using_control (mach_port_t port) void trivfs_end_using_control (struct trivfs_control *cred) { - ports_port_deref (cred); + if (cred) + ports_port_deref (cred); } |