Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/openldap/dist/libraries/librewrite Apply patch ...



details:   https://anonhg.NetBSD.org/src/rev/ba878ab323f2
branches:  trunk
changeset: 796291:ba878ab323f2
user:      tron <tron%NetBSD.org@localhost>
date:      Wed May 28 10:14:13 2014 +0000

description:
Apply patch to fix CVE-2013-4449. This shouldn't be necessary as we don't
build the server or its plug-ins. But it is better to be safe in case
this changes.

diffstat:

 external/bsd/openldap/dist/libraries/librewrite/session.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r c6274d6be9c3 -r ba878ab323f2 external/bsd/openldap/dist/libraries/librewrite/session.c
--- a/external/bsd/openldap/dist/libraries/librewrite/session.c Wed May 28 10:12:43 2014 +0000
+++ b/external/bsd/openldap/dist/libraries/librewrite/session.c Wed May 28 10:14:13 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: session.c,v 1.1.1.4 2014/05/28 09:58:45 tron Exp $     */
+/*     $NetBSD: session.c,v 1.2 2014/05/28 10:14:13 tron Exp $ */
 
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
@@ -163,6 +163,7 @@
 #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 */
@@ -180,6 +181,7 @@
 )
 {
        assert( session != NULL );
+       session->ls_count--;
        ldap_pvt_thread_mutex_unlock( &session->ls_mutex );
 }
 



Home | Main Index | Thread Index | Old Index