mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
mbedcrypto: Fix bignum_dup()
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
@@ -129,7 +129,7 @@ int ssh_mbedcry_hex2bn(bignum *dest, char *data);
|
|||||||
*(dest) = bignum_new(); \
|
*(dest) = bignum_new(); \
|
||||||
} \
|
} \
|
||||||
if (*(dest) != NULL) { \
|
if (*(dest) != NULL) { \
|
||||||
mbedtls_mpi_copy(orig, *(dest)); \
|
mbedtls_mpi_copy(*(dest), orig); \
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user