Pass imcp unreachable message string to print_warning instead of int.

This fixes the segfault reported in issue 85.
pull/86/head
Bill Blough 9 years ago
parent 51dbc97783
commit 4eb955ee85

@ -1741,7 +1741,8 @@ int handle_random_icmp(FPING_ICMPHDR *p, struct sockaddr *addr, socklen_t addr_l
addr_ascii, h->host ); addr_ascii, h->host );
} }
else { else {
print_warning("%s from %s for ICMP Echo sent to %s", icmp_code, addr_ascii, h->host); print_warning("%s from %s for ICMP Echo sent to %s",
icmp_unreach_str[icmp_code], addr_ascii, h->host);
} }
if( inet_addr( h->host ) == INADDR_NONE ) if( inet_addr( h->host ) == INADDR_NONE )

Loading…
Cancel
Save