]> git.sur5r.net Git - openldap/commitdiff
Don't re-cache IDL's retrieved from the cache
authorHoward Chu <hyc@openldap.org>
Fri, 23 May 2003 01:23:53 +0000 (01:23 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 23 May 2003 01:23:53 +0000 (01:23 +0000)
servers/slapd/back-bdb/dn2id.c

index 1c8cf332ba48055b13378ad1746721f091398106..865d5ae07c39b28c69109cce30cb46c4b5c1c7dd 100644 (file)
@@ -898,7 +898,7 @@ hdb_dn2idl_internal(
                        return cx->rc;
                }
                if ( cx->rc == LDAP_SUCCESS ) {
-                       goto saveit;
+                       goto gotit;
                }
        }
 #endif
@@ -949,6 +949,8 @@ saveit:
                bdb_idl_cache_put( cx->bdb, cx->db, &cx->key, cx->tmp, cx->rc );
        }
 #endif
+       ;
+gotit:
        if ( cx->rc == 0 ) {
                if ( cx->prefix == DN_SUBTREE_PREFIX ) {
                        ID *save, idcurs;