mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 15:19:17 +00:00
inotify: read interfaces: avoid uninitialized value access
check if 'ovs_type' is defined first Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
4566729d4e
commit
d2513a84df
@ -1097,10 +1097,12 @@ sub __read_etc_network_interfaces {
|
||||
} else {
|
||||
if ($d->{'vxlan-id'}) {
|
||||
$d->{type} = 'vxlan';
|
||||
} elsif ($d->{ovs_type} eq 'OVSIntPort') {
|
||||
$d->{type} = $d->{ovs_type};
|
||||
my $tag = &$extract_ovs_option($d, 'tag');
|
||||
$d->{ovs_tag} = $tag if defined($tag);
|
||||
} elsif (defined($d->{ovs_type})) {
|
||||
if ($d->{ovs_type} eq 'OVSIntPort') {
|
||||
$d->{type} = $d->{ovs_type};
|
||||
my $tag = &$extract_ovs_option($d, 'tag');
|
||||
$d->{ovs_tag} = $tag if defined($tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user