diff options
Diffstat (limited to 'lib/libcrypto/srp/srp_lib.c')
-rw-r--r-- | lib/libcrypto/srp/srp_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/srp/srp_lib.c b/lib/libcrypto/srp/srp_lib.c index a3a67eda2e2..77e2c2c2f2c 100644 --- a/lib/libcrypto/srp/srp_lib.c +++ b/lib/libcrypto/srp/srp_lib.c @@ -121,7 +121,7 @@ BIGNUM *SRP_Calc_u(BIGNUM *A, BIGNUM *B, BIGNUM *N) longN= BN_num_bytes(N); - if ((cAB = malloc(2*longN)) == NULL) + if ((cAB = reallocarray(NULL, 2, longN)) == NULL) return NULL; memset(cAB, 0, longN); |