Fixed an error in the send_icmp_error function