From e52efabdb7785c5971e56071bdbd673a009479b4 Mon Sep 17 00:00:00 2001 From: ramonn Date: Thu, 3 Apr 2014 15:11:03 +0000 Subject: [PATCH] 2014-04-03 Ramon Novoa * util/recon_scripts/snmp-recon.pl: Fixed a typo. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9715 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 4 ++++ pandora_server/util/recon_scripts/snmp-recon.pl | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 428727ef04..b66f32b1ed 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,7 @@ +2014-04-03 Ramon Novoa + + * util/recon_scripts/snmp-recon.pl: Fixed a typo. + 2014-04-03 Koichiro KIKUCHI * bin/tentacle_server: Updated to the logfile supported version. diff --git a/pandora_server/util/recon_scripts/snmp-recon.pl b/pandora_server/util/recon_scripts/snmp-recon.pl index 52f47cdcf0..a6fb4697bb 100755 --- a/pandora_server/util/recon_scripts/snmp-recon.pl +++ b/pandora_server/util/recon_scripts/snmp-recon.pl @@ -662,7 +662,7 @@ sub create_pandora_agent($) { # Add found IP addresses to the agent. foreach my $ip_addr (keys(%{$VISITED_DEVICES{$device}->{'addr'}})) { my $addr_id = get_addr_id ($DBH, $ip_addr); - add_address ($DBH, $ip_addr) unless ($addr_id > 0); + $addr_id = add_address ($DBH, $ip_addr) unless ($addr_id > 0); next unless ($addr_id > 0); # Assign the new address to the agent @@ -854,7 +854,7 @@ if ($#SUBNETS >= 0) { # Find routers. message("[1/6] Searching for routers..."); -if ($ROUTER ne '') { +if (defined($ROUTER) && $ROUTER ne '') { next_hop_discovery($ROUTER); } update_recon_task($DBH, $TASK_ID, 15);