]> git.proxmox.com Git - pve-firewall.git/commitdiff
followup: minor code style fix
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 19 Mar 2019 13:37:56 +0000 (14:37 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 19 Mar 2019 13:37:56 +0000 (14:37 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Firewall.pm

index 5d6de8675f99eebc8b1929b9a8994b1a9a61271b..acc906971060d26866065f4d74e11fb5954a9c12 100644 (file)
@@ -2011,8 +2011,8 @@ sub ipt_rule_to_cmds {
     }
 
     my @iptcmds;
-    if ($rule->{log} && $rule->{log} ne 'nolog') {
-       my $log = $rule->{log};
+    my $log = $rule->{log};
+    if (defined($log) && $log ne 'nolog') {
        my $loglevel = $log_level_hash->{$log};
        my $logaction = get_log_rule_base($chain, $vmid, $rule->{logmsg}, $loglevel);
        push @iptcmds, "-A $chain $matchstr $logaction";