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