2003-10-18 Ognyan Kulev <ogi@fmi.uni-sofia.bg> * rpctrace.c (trace_and_forward): Don't assert that local port is valid. diff -urpN --exclude=build --exclude='*~' --exclude=CVS /home/ogi/cvs/hurd/utils/rpctrace.c hurd/utils/rpctrace.c --- /home/ogi/cvs/hurd/utils/rpctrace.c 2002-05-29 02:56:25.000000000 +0300 +++ hurd/utils/rpctrace.c 2003-10-18 16:56:58.000000000 +0300 @@ -696,8 +696,7 @@ trace_and_forward (mach_msg_header_t *in { struct traced_info *info; info = rewrite_right (&inp->msgh_local_port, &reply_type); - assert (info); - if (info->name == 0) + if (info && info->name == 0) { if (msgid == 0) asprintf (&info->name, "reply(0:0)", @@ -707,7 +706,7 @@ trace_and_forward (mach_msg_header_t *in asprintf (&info->name, "reply(0:)", (unsigned int) info->pi.port_right, msgid->name); } - if (info->type == MACH_MSG_TYPE_MOVE_SEND_ONCE) + if (info && info->type == MACH_MSG_TYPE_MOVE_SEND_ONCE) { info->u.send_once.sent_to = info->pi.port_right; info->u.send_once.sent_msgid = inp->msgh_id;