[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Odd 'if ( be_isroot )' in servers/slapd/back-ldbm/modrdn.c (ITS#1761)
Full_Name: Mark A. Horstman
Version: 2.0.23
OS: Solaris 2.8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (209.184.192.23)
In servers/slapd/back-ldbm/modrdn.c:
176 /* no parent, must be root to modify rdn */
177 isroot = be_isroot( be, op->o_ndn );
-->178 if ( ! be_isroot ) {
and
294 /* no parent, must be root to modify newSuperior */
295 if ( isroot == -1 ) {
296 isroot = be_isroot( be, op->o_ndn );
297 }
298
-->299 if ( ! be_isroot ) {
Shouldn't those be 'if ( ! isroot )'? The 'if ( ! be_isroot )' condition will
always be true.