From 4ecd6bb9462f0fbaf4609f62d768847cc7e85f7e Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 22 Jul 2013 17:38:31 +0200 Subject: first shot at global variables (without proper sync so far) --- runtime/ruleset.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/ruleset.c') diff --git a/runtime/ruleset.c b/runtime/ruleset.c index 6c4eae26..dae5bbaa 100644 --- a/runtime/ruleset.c +++ b/runtime/ruleset.c @@ -452,6 +452,11 @@ evalPROPFILT(struct cnfstmt *stmt, msg_t *pMsg) DBGPRINTF("Filter: check for local var '%s' (value '%s') ", cstr, pszPropVal); free(cstr); + } else if(stmt->d.s_propfilt.propID == PROP_GLOBAL_VAR) { + cstr = es_str2cstr(stmt->d.s_propfilt.propName, NULL); + DBGPRINTF("Filter: check for global var '%s' (value '%s') ", + cstr, pszPropVal); + free(cstr); } else { DBGPRINTF("Filter: check for property '%s' (value '%s') ", propIDToName(stmt->d.s_propfilt.propID), pszPropVal); -- cgit v1.2.3