Improve error message when parent is referral or not present

This commit is contained in:
Kurt Zeilenga 2001-05-16 19:19:16 +00:00
parent 5a26f9d617
commit ce8fcda8c4

View File

@ -113,8 +113,9 @@ ldbm_back_add(
#endif
send_ldap_result( conn, op, LDAP_REFERRAL,
matched_dn, NULL, refs, NULL );
send_ldap_result( conn, op, LDAP_REFERRAL, matched_dn,
refs == NULL ? "parent does not exist" : "parent is referral",
refs, NULL );
if( matched != NULL ) {
ber_bvecfree( refs );