summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/providers/ipa/hbac_evaluator.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/ipa/hbac_evaluator.c b/src/providers/ipa/hbac_evaluator.c
index a41aa5bb..6190fe27 100644
--- a/src/providers/ipa/hbac_evaluator.c
+++ b/src/providers/ipa/hbac_evaluator.c
@@ -147,8 +147,10 @@ enum hbac_eval_result hbac_evaluate(struct hbac_rule **rules,
} else {
/* An error occurred processing this rule */
result = HBAC_EVAL_ERROR;
- (*info)->code = ret;
- (*info)->rule_name = strdup(rules[i]->name);
+ if (info) {
+ (*info)->code = ret;
+ (*info)->rule_name = strdup(rules[i]->name);
+ }
/* Explicitly not checking the result of strdup(), since if
* it's NULL, we can't do anything anyway.
*/