]> git.sur5r.net Git - openldap/commitdiff
matched_dn may be null
authorPierangelo Masarati <ando@openldap.org>
Thu, 27 Dec 2001 12:16:58 +0000 (12:16 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 27 Dec 2001 12:16:58 +0000 (12:16 +0000)
servers/slapd/back-ldbm/search.c

index f3ddf38c61afdc4703c43cf33be793a32f281cf6..6586b9476493cd0e7593159a98e6da3ff07e11d4 100644 (file)
@@ -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 );