summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-12-08 20:26:09 +0000
committerStef Walter <stef@memberwebs.com>2008-12-08 20:26:09 +0000
commitdc864d999f72e966fb0f1e2bf5fd8a3185430b8d (patch)
tree0c5540c364e126e6eb922f775eb66cce254cdaa4
parentc5412bd90d5f72aec7aa3131d3097642f297e7ba (diff)
Calculate correct length of CRYPT_PROV_INFO
-rw-r--r--ckcapi-key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ckcapi-key.c b/ckcapi-key.c
index d36a4c9..89ef726 100644
--- a/ckcapi-key.c
+++ b/ckcapi-key.c
@@ -567,7 +567,7 @@ duplicate_prov_info(CRYPT_KEY_PROV_INFO* original)
length += prov_length;
}
- length = sizeof(CRYPT_KEY_PROV_PARAM) * original->cProvParam;
+ length += sizeof(CRYPT_KEY_PROV_PARAM) * original->cProvParam;
for(i = 0; i < original->cProvParam; ++i)
length += original->rgProvParam[i].cbData;