diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-09 01:22:07 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-10-13 16:40:13 -0400 |
commit | 0d580b9ecc27c4bd602ba6598fb051b518a613b6 (patch) | |
tree | b2b348ffbb89ef289739668b86c1947672e50144 /tests | |
parent | 3f0e47fe2717b73ccef68ca18f9f7297ee73ebb2 (diff) | |
download | libseccomp-0d580b9ecc27c4bd602ba6598fb051b518a613b6.tar.gz |
api: add missing reviewer fixes
I forgot to amend my commit to include these fixes before pushing
the last update that was merged. Fix that now.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/11-basic-basic_errors.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/11-basic-basic_errors.c b/tests/11-basic-basic_errors.c index 53fe95d..785e094 100644 --- a/tests/11-basic-basic_errors.c +++ b/tests/11-basic-basic_errors.c @@ -192,9 +192,11 @@ int main(int argc, char *argv[]) if (rc != -EINVAL) return -1; + buf_len = sizeof(buf); rc = seccomp_export_bpf_mem(ctx, NULL, &buf_len); if (rc != 0) return -1; + buf_len = sizeof(buf); rc = seccomp_export_bpf_mem(ctx, buf, &buf_len); if (rc != 0) return -1; |