summaryrefslogtreecommitdiff
path: root/src/nm-firewall-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nm-firewall-manager.c')
-rw-r--r--src/nm-firewall-manager.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nm-firewall-manager.c b/src/nm-firewall-manager.c
index d3e3777d44..7a81731d84 100644
--- a/src/nm-firewall-manager.c
+++ b/src/nm-firewall-manager.c
@@ -117,7 +117,8 @@ add_or_change_cb (DBusGProxy *proxy, DBusGProxyCall *call_id, gpointer user_data
info->iface, info->id);
}
- info->callback (error, info->user_data);
+ if (info->callback)
+ info->callback (error, info->user_data);
info->completed = TRUE;
g_free (zone);
@@ -137,7 +138,8 @@ nm_firewall_manager_add_or_change_zone (NMFirewallManager *self,
if (priv->running == FALSE) {
nm_log_dbg (LOGD_FIREWALL, "(%s) firewall zone add/change skipped (not running)", iface);
- callback (NULL, user_data);
+ if (callback)
+ callback (NULL, user_data);
return NULL;
}