From 128f6d770844feb2369a5801454659caf64f6db7 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Fri, 21 Apr 2023 11:16:39 +0200 Subject: operations: fix bug into the reference injection --- operations.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operations.c b/operations.c index a7ea5fb..39867b7 100644 --- a/operations.c +++ b/operations.c @@ -241,8 +241,8 @@ static void set_inject_fields(uint64_t id, void *data, const struct op *a, if (new->type == IMMEDIATE) resp->newfd = new->fd; else - memcpy(&resp->srcfd, (uint16_t *)data + old->fd_off, - sizeof(resp->srcfd)); + memcpy(&resp->newfd, (uint16_t *)data + new->fd_off, + sizeof(resp->newfd)); if (old->type == IMMEDIATE) resp->srcfd = old->fd; -- cgit v1.2.3