Re: (ITS#7048) Non root binding causes assert
by aitor.carrera@edosoftfactory.com
--20cf307abe69d114a404ad78b34e
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
With this pacth it is solved, we added a precompiler macro to contribute th=
e
patch because we are not sure about security issues related this problem.
META_BACK_REFCNT_MUST_BE_ZERO_FOR_INVALIDATING_EXPIRED_CONNECTION =3D> It m=
ust
be defined for solving this issue
diff -Naur openldap-2.4.21.orig/servers/slapd/back-meta/conn.c
openldap-2.4.21/servers/slapd/back-meta/conn.c
--- openldap-2.4.21.orig/servers/slapd/back-meta/conn.c 2011-07-26
13:40:40.989376998 +0200
+++ openldap-2.4.21/servers/slapd/back-meta/conn.c 2011-07-26
13:51:40.537383269 +0200
@@ -1156,6 +1156,9 @@
mc =3D NULL;
} else {
+#ifdef META_BACK_REFCNT_MUST_BE_ZERO_FOR_INVALIDATING_EXPIRED_CONNECTION
+ if ( mc->mc_refcnt =3D=3D 0)
+#endif
if ( ( mi->mi_conn_ttl !=3D 0 && op->o_time > mc->mc_create_time +
mi->mi_conn_ttl )
|| ( mi->mi_idle_timeout !=3D 0 && op->o_time > mc->mc_time +
mi->mi_idle_timeout ) )
{
Regards
--------------------------------------------------------
Aitor Carrera Hern=E1ndez - Edosoft Factory
Telf. +34 828021575
Fax. +34 828066081
Antonio Mar=EDa Manrique 3, Planta 2 - Oficina 6.
35011 Las Palmas de Gran Canaria
--------------------------------------------------------
--20cf307abe69d114a404ad78b34e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div>With this pacth it is solved, we added a precompiler macro to contribu=
te the patch because we are not sure about security issues related this pro=
blem.</div><div><br></div><div>META_BACK_REFCNT_MUST_BE_ZERO_FOR_INVALIDATI=
NG_EXPIRED_CONNECTION =3D> It must be defined for solving this issue</di=
v>
<div><br></div><div><br></div><div><span class=3D"Apple-style-span" style=
=3D"font-family: 'Times New Roman'; font-size: medium; "><pre style=
=3D"word-wrap: break-word; white-space: pre-wrap; ">diff -Naur openldap-2.4=
.21.orig/servers/slapd/back-meta/conn.c openldap-2.4.21/servers/slapd/back-=
meta/conn.c
--- openldap-2.4.21.orig/servers/slapd/back-meta/conn.c 2011-07-26 13:40:40=
.989376998 +0200
+++ openldap-2.4.21/servers/slapd/back-meta/conn.c 2011-07-26 13:51:40.5373=
83269 +0200
@@ -1156,6 +1156,9 @@
mc =3D NULL;
=20
} else {
+#ifdef META_BACK_REFCNT_MUST_BE_ZERO_FOR_INVALIDATING_EXPIRED_CONNECTION
+ if ( mc->mc_refcnt =3D=3D 0)
+#endif
if ( ( mi->mi_conn_ttl !=3D 0 && op->o_time > mc->=
mc_create_time + mi->mi_conn_ttl )
|| ( mi->mi_idle_timeout !=3D 0 && op->o_time > mc-&=
gt;mc_time + mi->mi_idle_timeout ) )
{</pre><pre style=3D"word-wrap: break-word; white-space: pre-wrap; "><=
br></pre><pre style=3D"word-wrap: break-word; white-space: pre-wrap; ">Rega=
rds</pre></span></div><div><br></div>--------------------------------------=
------------------<br>
Aitor Carrera Hern=E1ndez - Edosoft Factory<br>Telf. +34 828021575<br>Fax. =
+34 828066081<br>Antonio Mar=EDa Manrique 3, Planta 2 - Oficina 6.<br>35011=
Las Palmas de Gran Canaria<br>--------------------------------------------=
------------<br>
--20cf307abe69d114a404ad78b34e--