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>
Этот коммит содержится в:
родитель
059b6851dc
Коммит
13c88a2e0a
@ -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);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user