diff --git a/plugins/varnish4/varnish4_ b/plugins/varnish4/varnish4_ index 5ba23dad..f348151e 100644 --- a/plugins/varnish4/varnish4_ +++ b/plugins/varnish4/varnish4_ @@ -885,7 +885,6 @@ sub usage my %state = ( 'stat' => 0, # inside or not 'field' => 'none', # , , , etc. - 'values' => () ); # Reset the state of XML, mainly used for end-elements. @@ -924,7 +923,7 @@ sub xml_commit_state if ($key eq 'flag') { $data = translate_type($data); } - if (defined($type) and $type ne "") { + if (defined($type) and $type ne "" and defined($ident) and $ident ne "") { $data{$type}{$ident}{$name}{$key} = $data; } else { $data{$name}{$key} = $data