From: Pierangelo Masarati Date: Thu, 17 Aug 2006 17:37:46 +0000 (+0000) Subject: don't core if out value is NULL (log error instead; in partial fulfilment of ITS... X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ea3ffdd135bcef008efbba42d3a3e017764b668b;p=openldap don't core if out value is NULL (log error instead; in partial fulfilment of ITS#4644) --- diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index be7b0aea0f..487890ef6a 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -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; }