summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pki/base/tps/src/main/PKCS11Obj.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/pki/base/tps/src/main/PKCS11Obj.cpp b/pki/base/tps/src/main/PKCS11Obj.cpp
index 62182c501..061dc7a91 100644
--- a/pki/base/tps/src/main/PKCS11Obj.cpp
+++ b/pki/base/tps/src/main/PKCS11Obj.cpp
@@ -79,11 +79,13 @@ PKCS11Obj *PKCS11Obj::Parse(Buffer *b, int offset)
#define MAX_UNCOMPRESS_SIZE 20000
unsigned char buf[MAX_UNCOMPRESS_SIZE];
- int len = MAX_UNCOMPRESS_SIZE;
- uncompress((Bytef*)buf, (uLongf*)&len,
+ int rc = 0;
+ uLong len = MAX_UNCOMPRESS_SIZE;
+ rc = uncompress((Bytef*)buf, (uLongf*)&len,
(Bytef*)((BYTE*)compressedData),
(uLong)compressedData.size());
- data = Buffer(buf, len);
+ RA::Debug("PKCS11Obj::Parse","uncompress ret=%d",rc);
+ data = Buffer(buf,(unsigned int) len);
} else {
/* error */
}