From bc68b6faa71f7ce410b7971112cd66b38ea6ea3c Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 27 Dec 2001 12:16:58 +0000 Subject: [PATCH] matched_dn may be null --- servers/slapd/back-ldbm/search.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.39.5