]> git.pld-linux.org Git - packages/kannel.git/blobdiff - kannel-openssl-1.1.0.patch
- release 2, missing ectx allocation/freeing calls (thx arekm)
[packages/kannel.git] / kannel-openssl-1.1.0.patch
index ff0c850a0d49b5549f4a782a4813fb0c4d4b7dcf..e613599e754935c16184db64e5f65da69fbdfc27 100644 (file)
     result = octstr_create_from_data((char *)output, len);
           gw_free(output);
  
-@@ -891,13 +891,13 @@
+@@ -891,13 +891,14 @@
  Octstr *wtls_rc5(Octstr * data, WTLSMachine * wtls_machine, int crypt)
  {
     Octstr *result;
 -   EVP_CIPHER_CTX ectx;
 +   EVP_CIPHER_CTX *ectx;
++   ectx = EVP_CIPHER_CTX_new();
     unsigned char ebuf[20], *output, *input, iv[20], c[2];
     int i = 0, len = octstr_len(data);
  
        memmove(output + i, ebuf, len - i);
     }
  
+@@ -946,6 +946,7 @@
+       memmove(output + i, ebuf, len - i);
+    }
+
++   EVP_CIPHER_CTX_free(ectx);
+    result = octstr_create_from_data((char *)output, len);
+          gw_free(output);
+    return (result);
 @@ -1052,7 +1052,7 @@
  {
     RSA *rsaStructure = NULL;
This page took 0.068476 seconds and 4 git commands to generate.