From 7f41dcdd3ada89d801f2042beb2dfeea8a31188d Mon Sep 17 00:00:00 2001 From: Artem Egorenkov Date: Fri, 11 Feb 2022 16:17:18 +0100 Subject: [PATCH] Fixed error in the patch Resolves: rhbz#1977401 --- unbound-1.13.1-rh1977401.patch | 10 ++++++---- unbound.spec | 6 +++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/unbound-1.13.1-rh1977401.patch b/unbound-1.13.1-rh1977401.patch index c66873d..4c4c42d 100644 --- a/unbound-1.13.1-rh1977401.patch +++ b/unbound-1.13.1-rh1977401.patch @@ -1,11 +1,13 @@ diff --git a/dns64/dns64.c b/dns64/dns64.c -index c79bc9c..fc7827e 100644 +index c79bc9c..fddbc62 100644 --- a/dns64/dns64.c +++ b/dns64/dns64.c -@@ -687,6 +687,12 @@ dns64_operate(struct module_qstate* qstate, enum module_ev event, int id, +@@ -685,8 +685,12 @@ dns64_operate(struct module_qstate* qstate, enum module_ev event, int id, + switch(event) { + case module_event_new: /* Tag this query as being new and fall through. */ - iq = (struct dns64_qstate*)regional_alloc( - qstate->region, sizeof(*iq)); +- iq = (struct dns64_qstate*)regional_alloc( +- qstate->region, sizeof(*iq)); + if (!(iq = (struct dns64_qstate*)regional_alloc( + qstate->region, sizeof(*iq)))) { + log_err("out of memory"); diff --git a/unbound.spec b/unbound.spec index 258d7f1..e07bbea 100644 --- a/unbound.spec +++ b/unbound.spec @@ -37,7 +37,7 @@ Summary: Validating, recursive, and caching DNS(SEC) resolver Name: unbound Version: 1.13.1 -Release: 11%{?extra_version:.%{extra_version}}%{?dist} +Release: 12%{?extra_version:.%{extra_version}}%{?dist} License: BSD Url: https://nlnetlabs.nl/projects/unbound/ Source: https://nlnetlabs.nl/downloads/%{name}/%{name}-%{version}%{?extra_version}.tar.gz @@ -463,6 +463,10 @@ popd %attr(0644,root,root) %config %{_sysconfdir}/%{name}/root.key %changelog +* Fri Feb 11 2022 Artem Egorenkov - 1.13.1-12 +- Fixed error in the patch +- Resolves: rhbz#1977401 + * Thu Feb 10 2022 Artem Egorenkov - 1.13.1-11 - regional_alloc() failure handled - Resolves: rhbz#1977401