From 4558e1c8a47dd8e11aa726ca1e1884f6f715a82d Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Fri, 16 Aug 1996 23:25:20 +0000 Subject: *** empty log message *** --- libtrivfs/ChangeLog | 6 ++++++ libtrivfs/migsupport.c | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'libtrivfs') 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 + + * 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 * 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); } -- cgit v1.2.3