diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index 3e55712751..0ed7fd0c6c 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -486,6 +486,7 @@ authzPrettyNormal( assert( val != NULL ); assert( !BER_BVISNULL( val ) ); + BER_BVZERO( normalized ); /* * 2) dn[.{exact|children|subtree|onelevel}]:{*|} @@ -904,7 +905,7 @@ authzPretty( rc = authzPrettyNormal( val, out, ctx, 0 ); Debug( LDAP_DEBUG_TRACE, "<<< authzPretty: <%s> (%d)\n", - out->bv_val, rc ); + out->bv_val ? out->bv_val : "(null)" , rc ); return rc; }