]> git.sur5r.net Git - openldap/commitdiff
Fix root dse checks
authorKurt Zeilenga <kurt@openldap.org>
Fri, 6 Jul 2001 02:14:47 +0000 (02:14 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 6 Jul 2001 02:14:47 +0000 (02:14 +0000)
servers/slapd/compare.c
servers/slapd/delete.c
servers/slapd/modify.c
servers/slapd/modrdn.c

index 4f2b993532f3999d6a5d47f9afca1a46737968f0..886ce341dc978a4857170c500c0fe3142c857669 100644 (file)
@@ -124,7 +124,7 @@ do_compare(
                goto cleanup;
        }
 
-       if( ndn == '\0' ) {
+       if( *ndn == '\0' ) {
 #ifdef NEW_LOGGING
                LDAP_LOG(( "operation", LDAP_LEVEL_DETAIL1,
                           "do_compare: conn %d  compare to root DSE!\n",
index 6aed63cc682692c1e1107c6fcbd88f6d88f14d89..b1bf15eb8a0ff95e982da15a14b7214e579cecd7 100644 (file)
@@ -86,7 +86,7 @@ do_delete(
                goto cleanup;
        }
 
-       if( ndn == '\0' ) {
+       if( *ndn == '\0' ) {
 #ifdef NEW_LOGGING
                LDAP_LOG(( "operation", LDAP_LEVEL_INFO,
                           "do_delete: conn %d  Attempt to delete root DSE.\n", conn->c_connid ));
index ff08f54dee494cb050fc103508315b6b2f9ad0eb..0104b4c8732a748f535bef803e2266b61ca3b1fc 100644 (file)
@@ -189,7 +189,7 @@ do_modify(
                goto cleanup;
        }
 
-       if( ndn == '\0' ) {
+       if( *ndn == '\0' ) {
 #ifdef NEW_LOGGING
                LDAP_LOG(( "operation", LDAP_LEVEL_ERR,
                           "do_modify: attempt to modify root DSE.\n" ));
index 573ae8ee19302a5cef53a188be59c69aab6f3028..a1d0d25b3cdc8532c565ae26a4d3ea551c9843d0 100644 (file)
@@ -212,7 +212,7 @@ do_modrdn(
                goto cleanup;
        }
 
-       if( ndn == '\0' ) {
+       if( *ndn == '\0' ) {
 #ifdef NEW_LOGGING
                LDAP_LOG(( "operation", LDAP_LEVEL_ERR,
                           "do_modrdn:  attempt to modify root DSE.\n" ));