fixed type in TCP connect diagnostic code