summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Wang <joequant@gmail.com>2016-06-27 09:44:36 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-06-27 11:16:24 +0200
commit1fdeb78f6d8b382a669e1ffe2359ee2c5264bf31 (patch)
treeeca875a4d17c9daa763a166b374fabd54976103b
parent2065cca409b93d16e22e1bf041b608f8fc163787 (diff)
downloaddrakx-net-1fdeb78f6d8b382a669e1ffe2359ee2c5264bf31.tar
drakx-net-1fdeb78f6d8b382a669e1ffe2359ee2c5264bf31.tar.gz
drakx-net-1fdeb78f6d8b382a669e1ffe2359ee2c5264bf31.tar.bz2
drakx-net-1fdeb78f6d8b382a669e1ffe2359ee2c5264bf31.tar.xz
drakx-net-1fdeb78f6d8b382a669e1ffe2359ee2c5264bf31.zip
fix crash if notification queue is not yet setup
Fixing mga#16995
-rw-r--r--NEWS3
-rw-r--r--lib/network/net_applet/ifw.pm1
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index d12b079..88cc0c2 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- net_applet:
+ o fix crash if notification queue is not yet initialized (mga#16995)
+
2.24
- fix Drakfirewall fails to open mountd ports for NFS #mga14550
diff --git a/lib/network/net_applet/ifw.pm b/lib/network/net_applet/ifw.pm
index 4ba5743..3b5c94f 100644
--- a/lib/network/net_applet/ifw.pm
+++ b/lib/network/net_applet/ifw.pm
@@ -86,6 +86,7 @@ sub handle_ifw_message {
}
my $is_attack = $message->{prefix} ne 'NEW';
enable_ifw_alert() if $is_attack;
+ return if !$network::net_applet::notification_queue;
$network::net_applet::notification_queue->add({
title => N("Interactive Firewall"),
pixbuf => $network::net_applet::pixbufs{firewall},