summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/txt_db
diff options
context:
space:
mode:
authorderaadt <>2014-05-29 21:19:30 +0000
committerderaadt <>2014-05-29 21:19:30 +0000
commite36774a3cfbf9430a020ae98951cce7b70f75c00 (patch)
tree956fc9edb289b1e8d01f4d38b053f5348ad99c38 /src/lib/libcrypto/txt_db
parent3d662abca6b2a7f5bc9108b036434d61fcdb6e53 (diff)
downloadopenbsd-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/txt_db')
-rw-r--r--src/lib/libcrypto/txt_db/txt_db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/txt_db/txt_db.c b/src/lib/libcrypto/txt_db/txt_db.c
index 0f3a7ffbb3..e29a60316a 100644
--- a/src/lib/libcrypto/txt_db/txt_db.c
+++ b/src/lib/libcrypto/txt_db/txt_db.c
@@ -94,9 +94,9 @@ TXT_DB_read(BIO *in, int num)
94 ret->qual = NULL; 94 ret->qual = NULL;
95 if ((ret->data = sk_OPENSSL_PSTRING_new_null()) == NULL) 95 if ((ret->data = sk_OPENSSL_PSTRING_new_null()) == NULL)
96 goto err; 96 goto err;
97 if ((ret->index = reallocarray(NULL, sizeof(*ret->index), num)) == NULL) 97 if ((ret->index = reallocarray(NULL, num, sizeof(*ret->index))) == NULL)
98 goto err; 98 goto err;
99 if ((ret->qual = reallocarray(NULL, sizeof(*(ret->qual)), num)) == NULL) 99 if ((ret->qual = reallocarray(NULL, num, sizeof(*(ret->qual)))) == NULL)
100 goto err; 100 goto err;
101 for (i = 0; i < num; i++) { 101 for (i = 0; i < num; i++) {
102 ret->index[i] = NULL; 102 ret->index[i] = NULL;