]> git.sur5r.net Git - openldap/commitdiff
Fix compilation errors (caching must still be undefined though)
authorLuke Howard <lukeh@openldap.org>
Fri, 11 Apr 2003 04:22:37 +0000 (04:22 +0000)
committerLuke Howard <lukeh@openldap.org>
Fri, 11 Apr 2003 04:22:37 +0000 (04:22 +0000)
servers/slapd/back-meta/cache-query.c
servers/slapd/back-meta/config.c
servers/slapd/back-meta/search.c

index 65925d229f4fc2103c375c8fa9309b3f192e3856..98a67882a7926b6272387777102518a3f881dda7 100644 (file)
@@ -271,8 +271,8 @@ int base_scope_compare(
        if (scope_stored < scope_incoming)
                return 0;
 
-       dnNormalize2(NULL, dn_incoming, &ndn_incoming);  
-       dnNormalize2(NULL, dn_stored, &ndn_stored);  
+       dnNormalize2(NULL, dn_incoming, &ndn_incoming);
+       dnNormalize2(NULL, dn_stored, &ndn_stored);
        
        i = dnIsSuffix(&ndn_incoming, &ndn_stored);
        
index 73654fb40a838a0aa4fcec90a324be247e9d8fa4..9775c0cbb203584e35cf7dfd4990864c8853a19b 100644 (file)
@@ -184,7 +184,7 @@ meta_back_db_config(
                dn.bv_len = strlen( ludp->lud_dn );
 
                rc = dnPrettyNormal( NULL, &dn, &li->targets[ i ]->psuffix,
-                       &li->targets[ i ]->suffix );
+                       &li->targets[ i ]->suffix, NULL );
                if( rc != LDAP_SUCCESS ) {
                        fprintf( stderr, "%s: line %d: "
                                        "target '%s' DN is invalid\n",
@@ -333,7 +333,7 @@ meta_back_db_config(
 
                dn.bv_val = argv[ 1 ];
                dn.bv_len = strlen( argv[ 1 ] );
-               if ( dnNormalize2( NULL, &dn, &li->targets[ i ]->binddn ) != LDAP_SUCCESS ) {
+               if ( dnNormalize2( NULL, &dn, &li->targets[ i ]->binddn, NULL ) != LDAP_SUCCESS ) {
                        fprintf( stderr, "%s: line %d: "
                                        "bind DN '%s' is invalid\n",
                                        fname, lineno, argv[ 1 ] );
@@ -390,7 +390,7 @@ meta_back_db_config(
 
                dn.bv_val = argv[ 1 ];
                dn.bv_len = strlen( argv[ 1 ] );
-               if ( dnNormalize2( NULL, &dn, &li->targets[ i ]->pseudorootdn ) != LDAP_SUCCESS ) {
+               if ( dnNormalize2( NULL, &dn, &li->targets[ i ]->pseudorootdn, NULL ) != LDAP_SUCCESS ) {
                        fprintf( stderr, "%s: line %d: "
                                        "pseudoroot DN '%s' is invalid\n",
                                        fname, lineno, argv[ 1 ] );
@@ -449,7 +449,7 @@ meta_back_db_config(
 
                dn.bv_val = argv[ 1 ];
                dn.bv_len = strlen( argv[ 1 ] );
-               if ( dnPrettyNormal( NULL, &dn, &pvnc, &nvnc ) != LDAP_SUCCESS ) {
+               if ( dnPrettyNormal( NULL, &dn, &pvnc, &nvnc, NULL ) != LDAP_SUCCESS ) {
                        fprintf( stderr, "%s: line %d: "
                                        "suffix '%s' is invalid\n",
                                        fname, lineno, argv[ 1 ] );
@@ -469,7 +469,7 @@ meta_back_db_config(
 
                dn.bv_val = argv[ 2 ];
                dn.bv_len = strlen( argv[ 2 ] );
-               if ( dnPrettyNormal( NULL, &dn, &prnc, &nrnc ) != LDAP_SUCCESS ) {
+               if ( dnPrettyNormal( NULL, &dn, &prnc, &nrnc, NULL ) != LDAP_SUCCESS ) {
                        fprintf( stderr, "%s: line %d: "
                                        "massaged suffix '%s' is invalid\n",
                                        fname, lineno, argv[ 2 ] );
index 65d90d3d874dd9adf8e9a56a5935746206bf9271..7fac3f2d2900cb06a7a6a7e4ade9091b69aa2aca 100644 (file)
@@ -663,7 +663,7 @@ meta_send_entry(
         * 
         * FIXME: should we log anything, or delegate to dnNormalize2?
         */
-       if ( dnNormalize2( NULL, &ent.e_name, &ent.e_nname ) != LDAP_SUCCESS ) {
+       if ( dnNormalize2( NULL, &ent.e_name, &ent.e_nname, &op->o_tmpmemctx ) != LDAP_SUCCESS ) {
                return LDAP_INVALID_DN_SYNTAX;
        }