Fixed potential null deref in tcp_send()