summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/firewall/eurephiafw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/firewall/eurephiafw.c b/plugin/firewall/eurephiafw.c
index 0189b16..fd3aa5e 100644
--- a/plugin/firewall/eurephiafw.c
+++ b/plugin/firewall/eurephiafw.c
@@ -229,7 +229,9 @@ void eFW_StartFirewall(eurephiaCTX *ctx) {
blacklisted = eDBget_blacklisted_ip(ctx);
p = blacklisted;
while( p != NULL ) {
- eFW_UpdateFirewall(ctx, FWRULE_BLACKLIST, p->val, ctx->fwcfg->fwblacklist, NULL);
+ if( p->val != NULL ) {
+ eFW_UpdateFirewall(ctx, FWRULE_BLACKLIST, p->val, ctx->fwcfg->fwblacklist, NULL);
+ }
p = p->next;
}
eFree_values(ctx, blacklisted);