[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4856) Back-SQL + Subtree search hits 'assert(0)'

Kevin Vargo wrote:
> Hi Pierangelo,

Please keep replies in CC to the ITS system.

>   Thanks for the quick response.  I just want to make sure I understand: you're saying that removing the assertion (as I did) is the correct solution?

Well, removing the assert(0) prevents the crash; the right fix is to
disallow the "subtree shortcut" in slapd.conf (slapd-sql(5)), which
causes the extra filtering on the DN to take place, so no false hits
show up.  But yes, the assert(0) was overparanoid, and I removed it from
the code.


Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
Office:   +39.02.23998309
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it