From 51c7cdb4c98c44b98167173349592be335e2d64e Mon Sep 17 00:00:00 2001 From: kris Date: Wed, 24 Oct 2007 18:31:51 +0000 Subject: [PATCH] Fixing reason code based on ICMP response (during host discovery) --- scan_engine.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan_engine.cc b/scan_engine.cc index 9dd093db4..9a3a6dc1a 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -3868,7 +3868,7 @@ static int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime) { current_reason = ping->type + ER_ICMPTYPE_MOD; if (current_reason == ER_DESTUNREACH) - current_reason = ping->type + ER_ICMPCODE_MOD; + current_reason = ping->code + ER_ICMPCODE_MOD; /* Echo reply, Timestamp reply, or Address Mask Reply */ if (ping->type == 0 || ping->type == 14 || ping->type == 18) {