forked from pool/libnl3
Submission 98625 from adrianSUSE
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnl3?expand=0&rev=15
This commit is contained in:
parent
cf1e35c072
commit
4d2509abca
32
avoid-dangling-co_major_cache-reference-to-NL_AUTO_P.diff
Normal file
32
avoid-dangling-co_major_cache-reference-to-NL_AUTO_P.diff
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
From 8525e3a4082f88bc93f70c996577e2e48eb57d79 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexander Sack <asac@jwsdot.com>
|
||||||
|
Date: Fri, 21 Oct 2011 00:31:39 +0200
|
||||||
|
Subject: [PATCH] avoid dangling co_major_cache reference to NL_AUTO_PROVIDE
|
||||||
|
caches
|
||||||
|
|
||||||
|
---
|
||||||
|
lib/cache_mngr.c | 7 +++++--
|
||||||
|
1 files changed, 5 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/cache_mngr.c b/lib/cache_mngr.c
|
||||||
|
index cfa676b..69fd4aa 100644
|
||||||
|
--- a/lib/cache_mngr.c
|
||||||
|
+++ b/lib/cache_mngr.c
|
||||||
|
@@ -372,9 +372,12 @@ void nl_cache_mngr_free(struct nl_cache_mngr *mngr)
|
||||||
|
if (mngr->cm_handle)
|
||||||
|
nl_close(mngr->cm_handle);
|
||||||
|
|
||||||
|
- for (i = 0; i < mngr->cm_nassocs; i++)
|
||||||
|
- if (mngr->cm_assocs[i].ca_cache)
|
||||||
|
+ for (i = 0; i < mngr->cm_nassocs; i++) {
|
||||||
|
+ if (mngr->cm_assocs[i].ca_cache) {
|
||||||
|
+ nl_cache_mngt_unprovide(mngr->cm_assocs[i].ca_cache);
|
||||||
|
nl_cache_free(mngr->cm_assocs[i].ca_cache);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
|
||||||
|
free(mngr->cm_assocs);
|
||||||
|
free(mngr);
|
||||||
|
--
|
||||||
|
1.7.5.4
|
||||||
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 3 13:23:24 UTC 2012 - adrian@suse.de
|
||||||
|
|
||||||
|
- add dangling-co_major_cache-reference fix required by ntrack
|
||||||
|
- use original upstream tar ball including url
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 19 20:44:32 UTC 2011 - coolo@suse.com
|
Sat Nov 19 20:44:32 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libnl3
|
# spec file for package libnl3
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -32,6 +32,7 @@ Url: http://people.suug.ch/~tgr/libnl/
|
|||||||
Source: libnl-%version.tar.xz
|
Source: libnl-%version.tar.xz
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Patch1: libdir.diff
|
Patch1: libdir.diff
|
||||||
|
Patch2: avoid-dangling-co_major_cache-reference-to-NL_AUTO_P.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: autoconf automake bison fdupes flex libtool
|
BuildRequires: autoconf automake bison fdupes flex libtool
|
||||||
BuildRequires: pkgconfig >= 0.23 python-devel xz
|
BuildRequires: pkgconfig >= 0.23 python-devel xz
|
||||||
@ -98,7 +99,7 @@ demonstrated.
|
|||||||
tar -xf "%{S:0}" --use=xz;
|
tar -xf "%{S:0}" --use=xz;
|
||||||
%setup -DTqn libnl-%version
|
%setup -DTqn libnl-%version
|
||||||
%endif
|
%endif
|
||||||
%patch -P 1 -p1
|
%patch -P 1 -P 2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# we do have patches
|
# we do have patches
|
||||||
|
Loading…
Reference in New Issue
Block a user