dispatch_connection: avoid buffer overflow in conn->metric