From 8e79fb92077941597d7c396272546e0f0d8dbaf0 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sat, 4 Feb 2017 14:39:31 +0100 Subject: [PATCH] Added patch fix initialization issue in gnutls_pkcs11_obj_list_import_url4 --- gnutls-3.5.8-init.patch | 12 ++++++++++++ gnutls.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 gnutls-3.5.8-init.patch diff --git a/gnutls-3.5.8-init.patch b/gnutls-3.5.8-init.patch new file mode 100644 index 0000000..337aa1c --- /dev/null +++ b/gnutls-3.5.8-init.patch @@ -0,0 +1,12 @@ +diff --git a/lib/pkcs11.c b/lib/pkcs11.c +index 21f8bc3..2473a4c 100644 +--- a/lib/pkcs11.c ++++ b/lib/pkcs11.c +@@ -3138,6 +3138,7 @@ gnutls_pkcs11_obj_list_import_url4(gnutls_pkcs11_obj_t ** p_list, + if (ret < 0) { + gnutls_assert(); + if (ret == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) { ++ *p_list = NULL; + *n_list = 0; + ret = 0; + } diff --git a/gnutls.spec b/gnutls.spec index 01527a8..dd059cc 100644 --- a/gnutls.spec +++ b/gnutls.spec @@ -3,7 +3,7 @@ Summary: A TLS protocol implementation Name: gnutls Version: 3.5.8 -Release: 1%{?dist} +Release: 2%{?dist} # The libraries are LGPLv2.1+, utilities are GPLv3+ License: GPLv3+ and LGPLv2+ Group: System Environment/Libraries @@ -35,6 +35,7 @@ Source0: %{name}-%{version}-hobbled.tar.xz Source2: hobble-gnutls Patch1: gnutls-3.2.7-rpath.patch Patch2: gnutls-3.4.2-no-now-guile.patch +Patch3: gnutls-3.5.8-init.patch # Wildcard bundling exception https://fedorahosted.org/fpc/ticket/174 Provides: bundled(gnulib) = 20130424 @@ -136,6 +137,7 @@ This package contains Guile bindings for the library. %patch1 -p1 -b .rpath %patch2 -p1 -b .guile +%patch3 -p1 -b .init sed 's/gnutls_srp.c//g' -i lib/Makefile.in sed 's/gnutls_srp.lo//g' -i lib/Makefile.in @@ -268,6 +270,9 @@ fi %endif %changelog +* Sat Feb 4 2017 Nikos Mavrogiannopoulos 3.5.8-2 +- Added patch fix initialization issue in gnutls_pkcs11_obj_list_import_url4 + * Mon Jan 9 2017 Nikos Mavrogiannopoulos 3.5.8-1 - New upstream release