diff options
author | Paul Moore <pmoore@redhat.com> | 2015-08-24 18:47:33 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-08-27 15:32:49 -0400 |
commit | 1d63fad4a064b80e0b921b16ed419f3342337ed4 (patch) | |
tree | ffc018a384e4408e69420104a3efb0d088a44bb1 | |
parent | 8224c0c181ff7dd6383cd18ce9b4e168ad8c9ff0 (diff) | |
download | libseccomp-1d63fad4a064b80e0b921b16ed419f3342337ed4.tar.gz |
arch: fix a problem with the rule rewrites in _seccomp_rule_add()
A typo was causing the return value from arch_fitler_rewrite() to be
ignored in cases where -EDOM was returned.
Signed-off-by: Paul Moore <pmoore@redhat.com>
-rw-r--r-- | src/api.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |