From e1765e58820dc79749b82e6de847293eea2ca7a9 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Mon, 5 Jun 2023 14:52:36 +0200 Subject: seitan: fix jmp in op_nr --- operations.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/operations.c b/operations.c index fc27270..734bc60 100644 --- a/operations.c +++ b/operations.c @@ -354,7 +354,6 @@ int op_cmp(const struct seccomp_notif *req, int notifier, struct gluten *g, const void *py = gluten_ptr(&req->data, g, op->y); enum op_cmp_type cmp = op->cmp; int res; - int jmp; (void)notifier; @@ -403,20 +402,17 @@ int op_nr(const struct seccomp_notif *req, int notifier, struct gluten *g, struct op_nr *op) { long nr; - int jmp; (void)notifier; if (gluten_read(NULL, g, &nr, op->nr, sizeof(nr)) == -1) return -1; - if (gluten_read(NULL, g, &jmp, op->no_match, sizeof(jmp)) == -1) - return -1; debug(" op_nr: checking syscall=%ld", nr); if (nr == req->data.nr) return 0; - debug(" op_nr: jmp to instr %d", jmp); - return jmp; + debug(" op_nr: jmp to instr %d", op->no_match.offset); + return op->no_match.offset; } int op_copy(const struct seccomp_notif *req, int notifier, struct gluten *g, -- cgit v1.2.3