1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

mbedcrypto_missing: Avoid potential memory leaks as reported by csbuild

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2019-12-16 16:48:40 +01:00
committed by Andreas Schneider
parent 059b6851dc
commit 13c88a2e0a

View File

@@ -150,6 +150,7 @@ int ssh_mbedcry_rand_range(bignum dest, bignum max)
}
rc = bignum_rand(rnd, bits);
if (rc != 1) {
bignum_safe_free(rnd);
return rc;
}
mbedtls_mpi_mod_mpi(dest, rnd, max);