From: Pierangelo Masarati Date: Thu, 27 Dec 2001 12:16:58 +0000 (+0000) Subject: matched_dn may be null X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~456 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bc68b6faa71f7ce410b7971112cd66b38ea6ea3c;p=openldap matched_dn may be null --- diff --git a/servers/slapd/back-ldbm/search.c b/servers/slapd/back-ldbm/search.c index f3ddf38c61..6586b94764 100644 --- a/servers/slapd/back-ldbm/search.c +++ b/servers/slapd/back-ldbm/search.c @@ -117,7 +117,8 @@ ldbm_back_search( } send_ldap_result( conn, op, err, - matched_dn->bv_val, text, refs, NULL ); + matched_dn ? matched_dn->bv_val : NULL, + text, refs, NULL ); ber_bvecfree( refs ); ber_bvfree( matched_dn );