mbedcrypto: Fix bignum_dup()

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
Jakub Jelen
2024-04-15 14:04:30 +02:00
parent fc5dd6f57c
commit 32d99ec5e5

View File

@@ -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)