log_ctcpversion back port fix, and some pointer trapping towards Simos bugreport