]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 2 Dec 2020 21:34:33 +0000 (21:34 +0000)
servers/slapd/saslauthz.c

index 2e59eb55988f31b1796d0d15e5dcbe09f1d8569d..982fe3120dbde22bf068105b61a90c857eb1c0b6 100644 (file)
@@ -488,6 +488,7 @@ authzPrettyNormal(
 
        assert( val != NULL );
        assert( !BER_BVISNULL( val ) );
+       BER_BVZERO( normalized );
 
        /*
         * 2) dn[.{exact|children|subtree|onelevel}]:{*|<DN>}
@@ -906,7 +907,7 @@ authzPretty(
        rc = authzPrettyNormal( val, out, ctx, 0 );
 
        Debug( LDAP_DEBUG_TRACE, "<<< authzPretty: <%s> (%d)\n",
-               out->bv_val, rc, 0 );
+               out->bv_val ? out->bv_val : "(null)" , rc, 0 );
 
        return rc;
 }