summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-11-01 14:10:24 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-11-01 14:10:24 +0100
commit9c81900a4d85a076c4dcbf4b6299421cd84ed629 (patch)
tree2d8b1dbc8fd6bd7cfe1e6067cf98b4553403bc06 /plugin
parent048ad09b16159c24b1edcec5c5d48099e6b50e2a (diff)
downloadeurephia-9c81900a4d85a076c4dcbf4b6299421cd84ed629.tar.gz
eurephia-9c81900a4d85a076c4dcbf4b6299421cd84ed629.tar.xz
eurephia-9c81900a4d85a076c4dcbf4b6299421cd84ed629.zip
Added double check that IP addr is not null before calling eFW_UpdateFirewall(...)
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);