]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9406 fix debug msg
authorHoward Chu <hyc@openldap.org>
Fri, 27 Nov 2020 14:48:26 +0000 (14:48 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 27 Nov 2020 14:48:26 +0000 (14:48 +0000)
servers/slapd/saslauthz.c

index 3e557127519fa29165fc9b82232edf2f9a2bd5a7..0ed7fd0c6ced5d3aea8ea4b59396347510660f72 100644 (file)
@@ -486,6 +486,7 @@ authzPrettyNormal(
 
        assert( val != NULL );
        assert( !BER_BVISNULL( val ) );
+       BER_BVZERO( normalized );
 
        /*
         * 2) dn[.{exact|children|subtree|onelevel}]:{*|<DN>}
@@ -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;
 }