diff options
-rw-r--r-- | ckcapi-key.c | 2 |
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; |