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/ec/ec_mult.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/ec/ec_mult.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec_mult.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ec/ec_mult.c b/src/lib/libcrypto/ec/ec_mult.c index b3bd34d82d..0fd0cab2f1 100644 --- a/src/lib/libcrypto/ec/ec_mult.c +++ b/src/lib/libcrypto/ec/ec_mult.c | |||
@@ -790,7 +790,7 @@ ec_wNAF_precompute_mult(EC_GROUP * group, BN_CTX * ctx) | |||
790 | num = pre_points_per_block * numblocks; /* number of points to | 790 | num = pre_points_per_block * numblocks; /* number of points to |
791 | * compute and store */ | 791 | * compute and store */ |
792 | 792 | ||
793 | points = reallocarray(NULL, sizeof(EC_POINT *), (num + 1)); | 793 | points = reallocarray(NULL, (num + 1), sizeof(EC_POINT *)); |
794 | if (!points) { | 794 | if (!points) { |
795 | ECerr(EC_F_EC_WNAF_PRECOMPUTE_MULT, ERR_R_MALLOC_FAILURE); | 795 | ECerr(EC_F_EC_WNAF_PRECOMPUTE_MULT, ERR_R_MALLOC_FAILURE); |
796 | goto err; | 796 | goto err; |