1
0
forked from jengelh/openldap2

- segfault on certain queries with rwm overlay (bnc#846389)

0008-ITS-7723-fix-reference-counting.patch

OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=123
This commit is contained in:
Christian Kornacker 2014-07-16 16:08:39 +00:00 committed by Git OBS Bridge
parent 72acdcaa0a
commit b709ba7705
5 changed files with 49 additions and 1 deletions

View File

@ -0,0 +1,32 @@
From 742d3e4a6a1f62c3c3ae1e9341f3615b4705a701 Mon Sep 17 00:00:00 2001
From: Jan Synacek <jsynacek@redhat.com>
Date: Wed, 13 Nov 2013 09:06:54 +0100
Subject: [PATCH] ITS#7723 fix reference counting
---
libraries/librewrite/session.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libraries/librewrite/session.c b/libraries/librewrite/session.c
index 28f2551..7c59d14 100644
--- a/libraries/librewrite/session.c
+++ b/libraries/librewrite/session.c
@@ -161,6 +161,7 @@ rewrite_session_find(
#ifdef USE_REWRITE_LDAP_PVT_THREADS
if ( session ) {
ldap_pvt_thread_mutex_lock( &session->ls_mutex );
+ session->ls_count++;
}
ldap_pvt_thread_rdwr_runlock( &info->li_cookies_mutex );
#endif /* USE_REWRITE_LDAP_PVT_THREADS */
@@ -178,6 +179,7 @@ rewrite_session_return(
)
{
assert( session != NULL );
+ session->ls_count--;
ldap_pvt_thread_mutex_unlock( &session->ls_mutex );
}
--
1.8.3.1

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jul 16 15:56:11 UTC 2014 - ckornacker@suse.com
- segfault on certain queries with rwm overlay (bnc#846389)
0008-ITS-7723-fix-reference-counting.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jun 6 13:16:24 UTC 2014 - ckornacker@suse.com Fri Jun 6 13:16:24 UTC 2014 - ckornacker@suse.com

View File

@ -77,6 +77,7 @@ Patch4: 0004-libldap-use-gethostbyname_r.dif
Patch5: 0005-pie-compile.dif Patch5: 0005-pie-compile.dif
Patch6: 0006-No-Build-date-and-time-in-binaries.dif Patch6: 0006-No-Build-date-and-time-in-binaries.dif
Patch7: 0007-Recover-on-DB-version-change.dif Patch7: 0007-Recover-on-DB-version-change.dif
Patch8: 0008-ITS-7723-fix-reference-counting.patch
Patch100: openldap-2.3.37.dif Patch100: openldap-2.3.37.dif
Patch101: openldap-2.3.37-libldap-suid.diff Patch101: openldap-2.3.37-libldap-suid.diff
Patch102: openldap-2.3.37-libldap-ldapi_url.dif Patch102: openldap-2.3.37-libldap-ldapi_url.dif
@ -216,6 +217,7 @@ This package contains the OpenLDAP client libraries.
%patch5 -p1 %patch5 -p1
%patch6 -p1 %patch6 -p1
%patch7 -p1 %patch7 -p1
%patch8 -p1
cp %{SOURCE5} . cp %{SOURCE5} .
cp %{SOURCE6} . cp %{SOURCE6} .
cd ../openldap-2.3.37 cd ../openldap-2.3.37
@ -554,7 +556,7 @@ then
cp -p --remove-destination /etc/openldap/schema/* $TEMPDIR cp -p --remove-destination /etc/openldap/schema/* $TEMPDIR
echo $TEMPDIR > /etc/openldap/UPDATE_NEEDED ; echo $TEMPDIR > /etc/openldap/UPDATE_NEEDED ;
fi fi
if chkconfig ldap 2>&1 | grep -q on; then if /usr/bin/chkconfig ldap 2>&1 | grep -q on; then
touch /var/run/enable_slapd_service touch /var/run/enable_slapd_service
fi fi
%service_add_pre slapd.service %service_add_pre slapd.service

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jul 16 15:56:11 UTC 2014 - ckornacker@suse.com
- segfault on certain queries with rwm overlay (bnc#846389)
0008-ITS-7723-fix-reference-counting.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jun 6 13:16:24 UTC 2014 - ckornacker@suse.com Fri Jun 6 13:16:24 UTC 2014 - ckornacker@suse.com

View File

@ -77,6 +77,7 @@ Patch4: 0004-libldap-use-gethostbyname_r.dif
Patch5: 0005-pie-compile.dif Patch5: 0005-pie-compile.dif
Patch6: 0006-No-Build-date-and-time-in-binaries.dif Patch6: 0006-No-Build-date-and-time-in-binaries.dif
Patch7: 0007-Recover-on-DB-version-change.dif Patch7: 0007-Recover-on-DB-version-change.dif
Patch8: 0008-ITS-7723-fix-reference-counting.patch
Patch100: openldap-2.3.37.dif Patch100: openldap-2.3.37.dif
Patch101: openldap-2.3.37-libldap-suid.diff Patch101: openldap-2.3.37-libldap-suid.diff
Patch102: openldap-2.3.37-libldap-ldapi_url.dif Patch102: openldap-2.3.37-libldap-ldapi_url.dif
@ -216,6 +217,7 @@ This package contains the OpenLDAP client libraries.
%patch5 -p1 %patch5 -p1
%patch6 -p1 %patch6 -p1
%patch7 -p1 %patch7 -p1
%patch8 -p1
cp %{SOURCE5} . cp %{SOURCE5} .
cp %{SOURCE6} . cp %{SOURCE6} .
cd ../openldap-2.3.37 cd ../openldap-2.3.37