[packages/kannel] - release 2, missing ectx allocation/freeing calls (thx arekm)
adamg
adamg at pld-linux.org
Fri Sep 28 13:22:08 CEST 2018
commit 7edef25a77000087f8bc31f28ec286235fe1d457
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Fri Sep 28 13:21:58 2018 +0200
- release 2, missing ectx allocation/freeing calls (thx arekm)
kannel-openssl-1.1.0.patch | 11 ++++++++++-
kannel.spec | 2 +-
2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/kannel.spec b/kannel.spec
index aee8d3d..64b9049 100644
--- a/kannel.spec
+++ b/kannel.spec
@@ -10,7 +10,7 @@ Summary: SMS/WAP gateway
Summary(pl.UTF-8): Bramka WAP oraz SMS
Name: kannel
Version: 1.4.5
-Release: 1
+Release: 2
License: BSD-like (see COPYING)
Group: Networking/Daemons
Source0: http://www.kannel.org/download/%{version}/gateway-%{version}.tar.gz
diff --git a/kannel-openssl-1.1.0.patch b/kannel-openssl-1.1.0.patch
index ff0c850..e613599 100644
--- a/kannel-openssl-1.1.0.patch
+++ b/kannel-openssl-1.1.0.patch
@@ -30,12 +30,13 @@
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);
@@ -89,6 +90,14 @@
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;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kannel.git/commitdiff/7edef25a77000087f8bc31f28ec286235fe1d457
More information about the pld-cvs-commit
mailing list