diff --git a/Don-t-free-soptions-while-it-is-still-needed.patch b/Don-t-free-soptions-while-it-is-still-needed.patch new file mode 100644 index 0000000..1333a0d --- /dev/null +++ b/Don-t-free-soptions-while-it-is-still-needed.patch @@ -0,0 +1,27 @@ +From c5270bde4dab84f18c347e82376ef00733865247 Mon Sep 17 00:00:00 2001 +From: Rob Crittenden +Date: Jul 01 2020 15:58:11 +0000 +Subject: Don't free soptions while it is still needed + + +Introduced in fbcf03dd44007a9b231e9396cc418a00e1a4b49a trying +to avoid leaking soptions and aoptions. + +https://pagure.io/certmonger/issue/163 +Signed-off-by: Rob Crittenden + +--- + +diff --git a/src/dogtag.c b/src/dogtag.c +index 91c9c58..faf81f9 100644 +--- a/src/dogtag.c ++++ b/src/dogtag.c +@@ -579,7 +579,6 @@ main(int argc, const char **argv) + pin = NULL; + } + } +- free(soptions); + /* Add client creds. */ + if (uid != NULL) { + uid = cm_submit_u_url_encode(uid); + diff --git a/certmonger-certmonger-0.79.11.tar.gz b/certmonger-certmonger-0.79.11.tar.gz new file mode 100644 index 0000000..6ff022b Binary files /dev/null and b/certmonger-certmonger-0.79.11.tar.gz differ diff --git a/certmonger-certmonger-0.79.8.tar.gz b/certmonger-certmonger-0.79.8.tar.gz deleted file mode 100644 index 0e75815..0000000 Binary files a/certmonger-certmonger-0.79.8.tar.gz and /dev/null differ diff --git a/certmonger.spec b/certmonger.spec index 142613f..fdb3c54 100644 --- a/certmonger.spec +++ b/certmonger.spec @@ -1,10 +1,13 @@ Name: certmonger -Version: 0.79.8 -Release: 3 +Version: 0.79.11 +Release: 1 Summary: Certificate status monitor and PKI enrollment client License: GPLv3+ URL: http://pagure.io/certmonger/ Source0: https://pagure.io/certmonger/archive/certmonger-%{version}/certmonger-certmonger-%{version}.tar.gz + +Patch0001: Don-t-free-soptions-while-it-is-still-needed.patch + BuildRequires: autoconf automake gettext-devel gcc openldap-devel krb5-devel BuildRequires: libidn2-devel dbus-devel nspr-devel nss-devel openssl-devel BuildRequires: libuuid-devel libtalloc-devel libtevent-devel libcurl-devel @@ -106,5 +109,8 @@ fi %{_mandir}/man*/* %changelog +* Thu Aug 06 2020 lingsheng - 0.79.11-1 +- Update to 0.79.11 + * Thu May 14 2020 Jeffery.Gao - 0.79.8-3 - Package init