Error var declared in CKey::DecryptData as non-null char array
authorsvost <ya.nowa@yandex.ru>
Fri, 6 May 2016 13:00:48 +0000 (16:00 +0300)
committersvost <ya.nowa@yandex.ru>
Fri, 6 May 2016 13:00:48 +0000 (16:00 +0300)
src/ecies.cpp

index 93a8900..502bc96 100644 (file)
@@ -523,7 +523,7 @@ unsigned char * ecies_decrypt(const ies_ctx_t *ctx, const cryptogram_t *cryptogr
 {
     unsigned char *envelope_key = NULL, *output = NULL;
 
-    if (!ctx || !cryptogram || !length || !error) {
+    if (!ctx || !cryptogram || !length) {
         SET_ERROR("Invalid argument");
         goto err;
     }