From dc41a6b37e8e7252ad9483c120bb0a101ed04d0f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 22 May 2003 09:22:41 +0000 Subject: [PATCH] ITS#2529 null DN in log --- servers/slapd/acl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 30fb2dc2f1..f924da1a8e 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -224,12 +224,13 @@ access_allowed( "access_allowed: backend default %s access %s to \"%s\"\n", access2str( access ), be->be_dfltaccess >= access ? "granted" : "denied", - op->o_dn.bv_val ); + op->o_dn.bv_val ? op->o_dn.bv_val : "(anonymous)" ); #else Debug( LDAP_DEBUG_ACL, "=> access_allowed: backend default %s access %s to \"%s\"\n", access2str( access ), - be->be_dfltaccess >= access ? "granted" : "denied", op->o_dn.bv_val ); + be->be_dfltaccess >= access ? "granted" : "denied", + op->o_dn.bv_val ? op->o_dn.bv_val : "(anonymous)" ); #endif ret = be->be_dfltaccess >= access; goto done; -- 2.39.5