From 32d99ec5e5da45388bcbd6e76a21e554dd7f2afe Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 15 Apr 2024 14:04:30 +0200 Subject: [PATCH] mbedcrypto: Fix bignum_dup() Signed-off-by: Jakub Jelen Reviewed-by: Sahana Prasad --- include/libssh/libmbedcrypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libssh/libmbedcrypto.h b/include/libssh/libmbedcrypto.h index 918fe293..71ebcccd 100644 --- a/include/libssh/libmbedcrypto.h +++ b/include/libssh/libmbedcrypto.h @@ -129,7 +129,7 @@ int ssh_mbedcry_hex2bn(bignum *dest, char *data); *(dest) = bignum_new(); \ } \ if (*(dest) != NULL) { \ - mbedtls_mpi_copy(orig, *(dest)); \ + mbedtls_mpi_copy(*(dest), orig); \ } \ } while(0)