]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix passing struct by value rather than by reference to syscall
authorMae <mae@vypercore.com>
Wed, 22 Jan 2025 16:54:43 +0000 (16:54 +0000)
committerTomas Mraz <tomas@openssl.org>
Fri, 24 Jan 2025 13:26:46 +0000 (14:26 +0100)
Fixes #26521

CLA: trivial

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26523)

(cherry picked from commit b6f2ff93639d9c71aae62dfc72082dd0829c2170)

engines/e_afalg.c

index ec4e21c582c8e8d8c34cdd055fbedb723945b45a..d54678a1751e1c04d5b2e4f7a2897403df0c939b 100644 (file)
@@ -165,7 +165,7 @@ static ossl_inline int io_getevents(aio_context_t ctx, long min, long max,
             ts32.tv_sec = (__kernel_long_t) timeout->tv_sec;
             ts32.tv_nsec = (__kernel_long_t) timeout->tv_nsec;
 
-            return syscall(__NR_io_getevents, ctx, min, max, events, ts32);
+            return syscall(__NR_io_getevents, ctx, min, max, events, &ts32);
         } else {
             return syscall(__NR_io_getevents, ctx, min, max, events, NULL);
         }