diff options
author | Thomas Bushnell <thomas@gnu.org> | 1996-08-16 23:25:20 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1996-08-16 23:25:20 +0000 |
commit | 4558e1c8a47dd8e11aa726ca1e1884f6f715a82d (patch) | |
tree | 5ce22acac37750bd7281d869b6e12c0bbb1b3f94 | |
parent | d2c4eddec0bf84b46dd64942bbbed2cae36f3ea4 (diff) |
*** empty log message ***
-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); } |