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:
parent
8005a2021f
commit
0df7c34986
|
@ -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.
|
||||
|
|
|
@ -101,8 +101,15 @@ sub callback {
|
|||
sub parse {
|
||||
my $self = shift;
|
||||
$self->_init();
|
||||
|
||||
eval {
|
||||
$self->{twig}->safe_parse(@_);
|
||||
if ($@) { die $@; }
|
||||
};
|
||||
|
||||
if ($@) {
|
||||
return;
|
||||
}
|
||||
|
||||
$self->_clean();
|
||||
$self->purge;
|
||||
return $self;
|
||||
|
|
Loading…
Reference in New Issue