summaryrefslogtreecommitdiff
path: root/src/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.c')
-rw-r--r--src/api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api.c b/src/api.c
index 182b896..a16d4c2 100644
--- a/src/api.c
+++ b/src/api.c
@@ -483,7 +483,7 @@ static int _seccomp_rule_add(struct db_filter_col *col,
/* mangle the private chain copy */
rc_tmp = arch_filter_rewrite(filter->arch, strict,
&sc_tmp, chain_tmp);
- if ((rc == -EDOM) && (!strict)) {
+ if ((rc_tmp == -EDOM) && (!strict)) {
free(chain_tmp);
continue;
}