[tor-commits] [tor/master] Use memdup_nulterm and check for NULs in handle_cmd_transport