1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman
2023-03-31 16:24:04 +01:00
parent 42a5bb16c6
commit 8dde24eb08

View File

@ -240,7 +240,7 @@ unsigned long mbedtls_timing_get_timer(struct mbedtls_timing_hr_time *val, int r
if (reset) {
QueryPerformanceCounter(&t->start);
memcpy(val, t, sizeof(struct _hr_time));
memcpy(val, val_aligned, sizeof(struct mbedtls_timing_hr_time));
return 0;
} else {
unsigned long delta;
@ -290,7 +290,7 @@ unsigned long mbedtls_timing_get_timer(struct mbedtls_timing_hr_time *val, int r
if (reset) {
gettimeofday(&t->start, NULL);
memcpy(val, t, sizeof(struct _hr_time));
memcpy(val, val_aligned, sizeof(struct mbedtls_timing_hr_time));
return 0;
} else {
unsigned long delta;