From 38e8fefe175f55a010226fd21b3fc68e24a3802a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 6 Jul 2001 02:14:47 +0000 Subject: [PATCH] Fix root dse checks --- servers/slapd/compare.c | 2 +- servers/slapd/delete.c | 2 +- servers/slapd/modify.c | 2 +- servers/slapd/modrdn.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/compare.c b/servers/slapd/compare.c index 4f2b993532..886ce341dc 100644 --- a/servers/slapd/compare.c +++ b/servers/slapd/compare.c @@ -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", diff --git a/servers/slapd/delete.c b/servers/slapd/delete.c index 6aed63cc68..b1bf15eb8a 100644 --- a/servers/slapd/delete.c +++ b/servers/slapd/delete.c @@ -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 )); diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index ff08f54dee..0104b4c873 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -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" )); diff --git a/servers/slapd/modrdn.c b/servers/slapd/modrdn.c index 573ae8ee19..a1d0d25b3c 100644 --- a/servers/slapd/modrdn.c +++ b/servers/slapd/modrdn.c @@ -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" )); -- 2.39.5