From: Howard Chu Date: Thu, 27 Apr 2006 23:21:39 +0000 (+0000) Subject: Fix rev 1.52, frontendDB uses index {-1}. X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~124 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f3ee4f5d3049e3c1c1ac7d87aafc918962115150;p=openldap Fix rev 1.52, frontendDB uses index {-1}. --- diff --git a/servers/slapd/back-ldif/ldif.c b/servers/slapd/back-ldif/ldif.c index 57898f8b9d..0dbb540dae 100644 --- a/servers/slapd/back-ldif/ldif.c +++ b/servers/slapd/back-ldif/ldif.c @@ -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; }