2011-09-23 Dario Rodriguez <dario.rodriguez@artica.es>

* lib/PandoraFMS/NmapParser.pm: Added an error handler to avoid 
	error during NmapParser lib execution.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4990 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
darode 2011-09-23 11:18:26 +00:00
parent 8005a2021f
commit 0df7c34986
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-09-23 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/NmapParser.pm: Added an error handler to avoid
error during NmapParser lib execution.
2011-09-22 Junichi Satoh <junichi@rworks.jp>
* pandora_server_installer: Fixed invalid group settings.

View File

@ -101,8 +101,15 @@ sub callback {
sub parse {
my $self = shift;
$self->_init();
$self->{twig}->safe_parse(@_);
if ($@) { die $@; }
eval {
$self->{twig}->safe_parse(@_);
};
if ($@) {
return;
}
$self->_clean();
$self->purge;
return $self;