matched_dn may be null

This commit is contained in:
Pierangelo Masarati 2001-12-27 12:16:58 +00:00
parent 102cb93220
commit bc68b6faa7

View 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 );