]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/index.c
When recreating a database from an ldif file created by ldbmcat,
[openldap] / servers / slapd / back-ldbm / index.c
index 444d079179a792777dd97c3ffb689de15a2bce59..1a3a468fc20f606bf17ee4f04f688da72248cf8e 100644 (file)
@@ -265,6 +265,13 @@ index_change_values(
        char            *at_cn; /* Attribute canonical name */
        int             mode;
 
+       if( vals == NULL ) {
+               Debug( LDAP_DEBUG_TRACE,
+                       "=> index_change_values( %s, NULL, %ld, op=%s )\n", 
+                       type, id, ((op == __INDEX_ADD_OP) ? "ADD" : "DELETE" ) );
+               return 0;
+       }
+
        Debug( LDAP_DEBUG_TRACE,
               "=> index_change_values( \"%s\", %ld, op=%s )\n", 
               type, id, ((op == __INDEX_ADD_OP) ? "ADD" : "DELETE" ) );
@@ -417,6 +424,7 @@ index_change_values(
                        free( bigbuf );
                }
        }
+
        ldbm_cache_close( be, db );
 
        return( 0 );