summaryrefslogtreecommitdiff
path: root/lib/libcrypto/lhash/lhash.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-05-29 21:19:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-05-29 21:19:31 +0000
commit6691dbf59b4226a983036d794916439cf6954a66 (patch)
treedb206a382c16fe688878972c3ae7d1dd62069a51 /lib/libcrypto/lhash/lhash.c
parent23e318bc3fe7526bacb503f5b14da8aee3502871 (diff)
ok, next pass after review: when possible, put the reallocarray arguments
in the "size_t nmemb, size_t size"
Diffstat (limited to 'lib/libcrypto/lhash/lhash.c')
-rw-r--r--lib/libcrypto/lhash/lhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/lhash/lhash.c b/lib/libcrypto/lhash/lhash.c
index e75a43f5066..1e3359cfe06 100644
--- a/lib/libcrypto/lhash/lhash.c
+++ b/lib/libcrypto/lhash/lhash.c
@@ -119,7 +119,7 @@ lh_new(LHASH_HASH_FN_TYPE h, LHASH_COMP_FN_TYPE c)
if ((ret = malloc(sizeof(_LHASH))) == NULL)
goto err0;
- if ((ret->b = reallocarray(NULL, sizeof(LHASH_NODE *), MIN_NODES)) == NULL)
+ if ((ret->b = reallocarray(NULL, MIN_NODES, sizeof(LHASH_NODE *))) == NULL)
goto err1;
for (i = 0; i < MIN_NODES; i++)
ret->b[i] = NULL;