diff options
author | Zheng Da <zhengda1936@gmail.com> | 2009-07-31 17:11:55 +0200 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2009-07-31 17:11:55 +0200 |
commit | a8ee006648ee736d74fdb48b02830bb7af1733dd (patch) | |
tree | c332caf7ef3e6d0a57310d8e298eb9394f44950e | |
parent | 08aa7edb495445c0bfa54cb5d207e85c1df9008a (diff) |
fix a bug #20612
* rpctrace.c (print_contents): Check the number of elements in the port array.
-rw-r--r-- | utils/rpctrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/rpctrace.c b/utils/rpctrace.c index d80f41dd..b7379a76 100644 --- a/utils/rpctrace.c +++ b/utils/rpctrace.c @@ -631,7 +631,7 @@ print_contents (mach_msg_header_t *inp, else type->msgt_name = name; } - else if (newtypes[0] != name) + else if (nelt > 0 && newtypes[0] != name) if (type->msgt_longform) lt->msgtl_name = newtypes[0]; else |