diff options
| author | deraadt <> | 2014-05-29 21:19:30 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-05-29 21:19:30 +0000 |
| commit | 44c9da02b72b146dbbcafcaec3c3976d04f5c0df (patch) | |
| tree | 956fc9edb289b1e8d01f4d38b053f5348ad99c38 /src/lib/libcrypto/bn/bn_lib.c | |
| parent | 642d45ae22413aa8195b105d051ca8896e782c5d (diff) | |
| download | openbsd-44c9da02b72b146dbbcafcaec3c3976d04f5c0df.tar.gz openbsd-44c9da02b72b146dbbcafcaec3c3976d04f5c0df.tar.bz2 openbsd-44c9da02b72b146dbbcafcaec3c3976d04f5c0df.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); |
