diff options
author | Eduardo Otubo <otubo@linux.vnet.ibm.com> | 2013-05-07 16:00:50 -0300 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2013-05-08 08:18:20 -0400 |
commit | ddb71810c78a9c3d2b20a3b7685aca5c281d1e24 (patch) | |
tree | 652a95e8802dbc49e7282ae46c8bcdee4d7a55be | |
parent | b0ed84ca8d4abc88984881049d572f558aaf1838 (diff) | |
download | libseccomp-ddb71810c78a9c3d2b20a3b7685aca5c281d1e24.tar.gz |
api: wrong variable name was failing seccomp_syscall_priority
The wrong variable name was erroneous failing the function
seccomp_syscall_priority() when trying to set a priority on a negative
(pseudo-syscall) is added.
Signed-off-by: Eduardo Otubo <otubo@linux.vnet.ibm.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
-rw-r--r-- | src/api.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -330,7 +330,7 @@ int seccomp_syscall_priority(scmp_filter_ctx ctx, int syscall, uint8_t priority) * want to catch the -EDOM error and bail on this * architecture */ rc_tmp = arch_syscall_rewrite(filter->arch, 1, &sc_tmp); - if (rc == -EDOM) + if (rc_tmp == -EDOM) continue; if (rc_tmp < 0) goto syscall_priority_failure; |