diff options
Diffstat (limited to 'runtime/ruleset.c')
-rw-r--r-- | runtime/ruleset.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/ruleset.c b/runtime/ruleset.c index 7b53fe3b..8310e70d 100644 --- a/runtime/ruleset.c +++ b/runtime/ruleset.c @@ -318,6 +318,9 @@ evalPROPFILT(struct cnfstmt *stmt, msg_t *pMsg) int bRet = 0; size_t propLen; + if(stmt->d.s_propfilt.propID == PROP_INVALID) + goto done; + pszPropVal = MsgGetProp(pMsg, NULL, stmt->d.s_propfilt.propID, stmt->d.s_propfilt.propName, &propLen, &pbMustBeFreed); @@ -390,6 +393,7 @@ evalPROPFILT(struct cnfstmt *stmt, msg_t *pMsg) /* cleanup */ if(pbMustBeFreed) free(pszPropVal); +done: return bRet; } |