diff options
author | deraadt <> | 2014-05-29 21:19:30 +0000 |
---|---|---|
committer | deraadt <> | 2014-05-29 21:19:30 +0000 |
commit | e36774a3cfbf9430a020ae98951cce7b70f75c00 (patch) | |
tree | 956fc9edb289b1e8d01f4d38b053f5348ad99c38 /src/lib/libcrypto/bn/bn_lib.c | |
parent | 3d662abca6b2a7f5bc9108b036434d61fcdb6e53 (diff) | |
download | openbsd-e36774a3cfbf9430a020ae98951cce7b70f75c00.tar.gz openbsd-e36774a3cfbf9430a020ae98951cce7b70f75c00.tar.bz2 openbsd-e36774a3cfbf9430a020ae98951cce7b70f75c00.zip |
ok, next pass after review: when possible, put the reallocarray arguments
in the "size_t nmemb, size_t size"
Diffstat (limited to 'src/lib/libcrypto/bn/bn_lib.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_lib.c b/src/lib/libcrypto/bn/bn_lib.c index 28489f8181..a4f0bdd34b 100644 --- a/src/lib/libcrypto/bn/bn_lib.c +++ b/src/lib/libcrypto/bn/bn_lib.c | |||
@@ -278,7 +278,7 @@ bn_expand_internal(const BIGNUM *b, int words) | |||
278 | BN_R_EXPAND_ON_STATIC_BIGNUM_DATA); | 278 | BN_R_EXPAND_ON_STATIC_BIGNUM_DATA); |
279 | return (NULL); | 279 | return (NULL); |
280 | } | 280 | } |
281 | a = A = reallocarray(NULL, sizeof(BN_ULONG), words); | 281 | a = A = reallocarray(NULL, words, sizeof(BN_ULONG)); |
282 | if (A == NULL) { | 282 | if (A == NULL) { |
283 | BNerr(BN_F_BN_EXPAND_INTERNAL, ERR_R_MALLOC_FAILURE); | 283 | BNerr(BN_F_BN_EXPAND_INTERNAL, ERR_R_MALLOC_FAILURE); |
284 | return (NULL); | 284 | return (NULL); |