From 52e99c5b8584574e59f09a133b4a82db655c46f1 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 8 Jul 1995 22:59:43 +0000 Subject: (ports_begin_rpc): Properly add INFO to PI's current_rpcs list when the list is empty. --- libports/begin-rpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libports') diff --git a/libports/begin-rpc.c b/libports/begin-rpc.c index e1541b1d..83cb35b8 100644 --- a/libports/begin-rpc.c +++ b/libports/begin-rpc.c @@ -71,7 +71,8 @@ ports_begin_rpc (void *portstruct, struct rpc_info *info) /* Record that that an RPC is in progress */ info->thread = hurd_thread_self (); info->next = pi->current_rpcs; - pi->current_rpcs->prevp = &info->next; + if (pi->current_rpcs) + pi->current_rpcs->prevp = &info->next; info->prevp = &pi->current_rpcs; pi->current_rpcs = info; -- cgit v1.2.3