summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/txt_db/txt_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/txt_db/txt_db.c')
-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;