]> git.sur5r.net Git - openldap/commitdiff
don't core if out value is NULL (log error instead; in partial fulfilment of ITS...
authorPierangelo Masarati <ando@openldap.org>
Thu, 17 Aug 2006 17:37:46 +0000 (17:37 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 17 Aug 2006 17:37:46 +0000 (17:37 +0000)
servers/slapd/dn.c

index be7b0aea0fa6d5c72cb7d1448a75125c0da4389c..487890ef6a7ea1d8138f2de190d2639730628e9b 100644 (file)
@@ -1412,7 +1412,8 @@ dnX509normalize( void *x509_name, struct berval *out )
        int rc = ldap_X509dn2bv( x509_name, out, LDAPDN_rewrite, 0 );
 
        Debug( LDAP_DEBUG_TRACE,
-               "dnX509Normalize: <%s>\n", out->bv_val, 0, 0 );
+               "dnX509Normalize: <%s> (%d)\n",
+               BER_BVISNULL( out ) ? "(null)" : out->bv_val, rc, 0 );
 
        return rc;
 }