]> git.sur5r.net Git - openldap/commitdiff
Fix rev 1.52, frontendDB uses index {-1}.
authorHoward Chu <hyc@openldap.org>
Thu, 27 Apr 2006 23:21:39 +0000 (23:21 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 27 Apr 2006 23:21:39 +0000 (23:21 +0000)
servers/slapd/back-ldif/ldif.c

index 57898f8b9d4771cdf12ca079852a118c19dcb92d..0dbb540daee910a930de3a661e92f73100041ae2 100644 (file)
@@ -420,9 +420,7 @@ static int r_enum_tree(enumCookie *ck, struct berval *path,
                                if ( ptr ) {
                                        itmp.bv_len = ptr - itmp.bv_val;
                                        ber_dupbv( &bvl->num, &itmp );
-                                       /* FIXME: handle error? */
-                                       assert( itmp.bv_val[ 0 ] != '-' );
-                                       bvl->inum = strtoul( itmp.bv_val, NULL, 0 );
+                                       bvl->inum = strtol( itmp.bv_val, NULL, 0 );
                                        itmp.bv_val[0] = '\0';
                                        bvl->off = itmp.bv_val - bvl->bv.bv_val;
                                }