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>
|
2011-09-22 Junichi Satoh <junichi@rworks.jp>
|
||||||
|
|
||||||
* pandora_server_installer: Fixed invalid group settings.
|
* pandora_server_installer: Fixed invalid group settings.
|
||||||
|
|
|
@ -101,8 +101,15 @@ sub callback {
|
||||||
sub parse {
|
sub parse {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
$self->_init();
|
$self->_init();
|
||||||
|
|
||||||
|
eval {
|
||||||
$self->{twig}->safe_parse(@_);
|
$self->{twig}->safe_parse(@_);
|
||||||
if ($@) { die $@; }
|
};
|
||||||
|
|
||||||
|
if ($@) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$self->_clean();
|
$self->_clean();
|
||||||
$self->purge;
|
$self->purge;
|
||||||
return $self;
|
return $self;
|
||||||
|
|
Loading…
Reference in New Issue