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/ec | |
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/ec')
-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; |