summaryrefslogtreecommitdiffstats
path: root/plugin/firewall
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-11-29 00:55:32 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-11-29 00:55:32 +0100
commit8e0ce79999351889c5df8fc4641c0d7011657f2d (patch)
tree665d18c433ae2315cd6532219edbfc9cc2feff8e /plugin/firewall
parent6c8d27e54fbf16b452b080fa76363568bd1f0ea9 (diff)
downloadeurephia-8e0ce79999351889c5df8fc4641c0d7011657f2d.tar.gz
eurephia-8e0ce79999351889c5df8fc4641c0d7011657f2d.tar.xz
eurephia-8e0ce79999351889c5df8fc4641c0d7011657f2d.zip
Added context_type into eurephiaCTX struct. Database queries limited due to context type.
Diffstat (limited to 'plugin/firewall')
-rw-r--r--plugin/firewall/eurephiafw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/firewall/eurephiafw.c b/plugin/firewall/eurephiafw.c
index ae383cc..a253631 100644
--- a/plugin/firewall/eurephiafw.c
+++ b/plugin/firewall/eurephiafw.c
@@ -113,6 +113,7 @@ void eFW_StartFirewall(eurephiaCTX *ctx) {
// Create a fake eurephia context, just for logging
shadowctx = (eurephiaCTX *) malloc(sizeof(eurephiaCTX)+2);
memset(shadowctx, 0, sizeof(eurephiaCTX)+2);
+ shadowctx->context_type = ECTX_NO_PRIVILEGES;
shadowctx->loglevel = ctx->loglevel;
shadowctx->log = ctx->log;
(*ctx->fwcfg).thrdata.ctx = shadowctx;