segfault fix for tcp status command