summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjsing <>2024-11-12 13:14:57 +0000
committerjsing <>2024-11-12 13:14:57 +0000
commitdffaba364fb662064a71e6531610d2583f829e15 (patch)
tree19a81a9fa5615c93daae10f185b9f3e95bb580b7 /src/lib
parent5fa6b87766b8704ba4e051e3a35219f39177fa42 (diff)
downloadopenbsd-dffaba364fb662064a71e6531610d2583f829e15.tar.gz
openbsd-dffaba364fb662064a71e6531610d2583f829e15.tar.bz2
openbsd-dffaba364fb662064a71e6531610d2583f829e15.zip
Check the correct variable in cpuid().
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/arch/amd64/crypto_cpu_caps.c4
-rw-r--r--src/lib/libcrypto/arch/i386/crypto_cpu_caps.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/arch/amd64/crypto_cpu_caps.c b/src/lib/libcrypto/arch/amd64/crypto_cpu_caps.c
index b0da0d636c..6bb77411af 100644
--- a/src/lib/libcrypto/arch/amd64/crypto_cpu_caps.c
+++ b/src/lib/libcrypto/arch/amd64/crypto_cpu_caps.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: crypto_cpu_caps.c,v 1.2 2024/10/19 13:06:11 jsing Exp $ */ 1/* $OpenBSD: crypto_cpu_caps.c,v 1.3 2024/11/12 13:14:57 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2024 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2024 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -43,7 +43,7 @@ cpuid(uint32_t eax, uint32_t *out_eax, uint32_t *out_ebx, uint32_t *out_ecx,
43 *out_eax = eax; 43 *out_eax = eax;
44 if (out_ebx != NULL) 44 if (out_ebx != NULL)
45 *out_ebx = ebx; 45 *out_ebx = ebx;
46 if (out_ebx != NULL) 46 if (out_ecx != NULL)
47 *out_ecx = ecx; 47 *out_ecx = ecx;
48 if (out_edx != NULL) 48 if (out_edx != NULL)
49 *out_edx = edx; 49 *out_edx = edx;
diff --git a/src/lib/libcrypto/arch/i386/crypto_cpu_caps.c b/src/lib/libcrypto/arch/i386/crypto_cpu_caps.c
index b0da0d636c..6bb77411af 100644
--- a/src/lib/libcrypto/arch/i386/crypto_cpu_caps.c
+++ b/src/lib/libcrypto/arch/i386/crypto_cpu_caps.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: crypto_cpu_caps.c,v 1.2 2024/10/19 13:06:11 jsing Exp $ */ 1/* $OpenBSD: crypto_cpu_caps.c,v 1.3 2024/11/12 13:14:57 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2024 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2024 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -43,7 +43,7 @@ cpuid(uint32_t eax, uint32_t *out_eax, uint32_t *out_ebx, uint32_t *out_ecx,
43 *out_eax = eax; 43 *out_eax = eax;
44 if (out_ebx != NULL) 44 if (out_ebx != NULL)
45 *out_ebx = ebx; 45 *out_ebx = ebx;
46 if (out_ebx != NULL) 46 if (out_ecx != NULL)
47 *out_ecx = ecx; 47 *out_ecx = ecx;
48 if (out_edx != NULL) 48 if (out_edx != NULL)
49 *out_edx = edx; 49 *out_edx = edx;